我希望将一些资源复制到 2 个不同的目录中。我如何在 pom 中指定这个?
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/${project.build.finalName}/lib
</outputDirectory>
<resources>
<resource>
<directory>${SOME_LIB}</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>