これは私のpomファイルのスニペットです。
....
<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」タグがビルド動作を変更するのはなぜですか?または、別の目標またはオプションを使用する必要がありますか?