我正在使用 Maven。
如此链接中所示:http ://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html (第二种情况),如果工件被列为依赖项,我们可以删除存在的标签. 因为 artifactItem 的版本将默认为依赖项中的版本。
但在使用配置文件时情况并非如此。
我正在使用两个配置文件,其中我正在添加依赖项。我的 pom 是这样的:
<profile>
<id>buildDependency</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>maven.dependency</name>
<value>true</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.marshy</groupId>
<artifactId>marshy1</artifactId>
<version>1.1.0.5</version>
</dependency>
现在,如果我从认为它将从此处获取值的想法中删除标签,则会引发错误,指出“无法收集......的依赖项。”
我怎样才能使这项工作适用于个人资料?