【发布时间】:2014-01-13 10:23:57
【问题描述】:
找不到相关文档:
当您声明具有“自定义”范围的依赖项时会发生什么:
<dependency>
<groupId>group</groupId>
<artifactId>artifact</artifactId>
<version>1.0</version>
<scope>whatever</scope>
</dependency>
没有检查,这个没有失败:
dependency:tree
[INFO] +- group:artifact:jar:1.0:whatever
疯了……
【问题讨论】:
-
你使用哪个 maven 版本?如果我尝试使用 Maven 3.0.5,我会收到警告。
标签: maven scope dependencies