运行maven dependency : list后,文件名旁边的“auto”标签是什么意思?

问题描述 投票:0回答:1

这是我运行命令时得到的响应示例:

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 maven-plugin
1个回答
0
投票

使用 Maven,您可以配置许多依赖项。他们中的大多数都有自己的依赖项。

在这种场景下,通常,用

auto
标记的依赖应该被认为是传递性,换句话说:通过maven分析传递依赖链自动解析。

© www.soinside.com 2019 - 2024. All rights reserved.