【发布时间】:2012-05-16 00:37:06
【问题描述】:
这是我的 pom 文件的 sn-p。
....
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
......
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...
我用命令成功了
mvn install
但是,当我尝试将其包含在“pluginManagement”标签中时,maven-dependency-plugin 在我启动 install 目标时停止工作。
为什么“pluginManagement”标签会改变构建行为?或者我应该使用其他目标或选项?
【问题讨论】:
标签: java maven build pom.xml maven-dependency-plugin