我有一个Maven Eclipse Java项目。我想请maven将所有必需的库复制到
aaa
文件夹durin
Eclipse->Run->Run as->Maveven build-> package
过程我已经为此配置了插件:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/aaa</outputDirectory>
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
</configuration>
</execution>
</executions>
</plugin>
但看起来添加这个插件在打包过程中不需要任何操作,也不会创建任何文件夹和文件。如何解决这个问题?