这是我运行命令时得到的响应示例:
mvn dependency:list
[信息]以下文件已得到解决:
[信息] org.springframework.boot:spring-boot-starter-web:jar:3.1.6:compile -- 模块 spring.boot.starter.web [auto]
[信息] org.springframework.boot:spring-boot-starter:jar:3.1.6:compile -- 模块 spring.boot.starter [auto]
[信息] org.springframework.boot:spring-boot:jar:3.1.6:compile -- 模块 spring.boot [auto]
[信息] ch.qos.logback:logback-classic:jar:1.4.11:compile -- 模块 ch.qos.logback.classic
使用 Maven,您可以配置许多依赖项。他们中的大多数都有自己的依赖项。
在这种场景下,通常,用
auto
标记的依赖应该被认为是传递性,换句话说:通过maven分析传递依赖链自动解析。