Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.4
-
Fix Version/s: 2.4
-
Component/s: None
-
Labels:None
-
Environment:Maven version: 2.0.9
Java version: 1.6.0_16
-
Number of attachments :
Description
Having a multi-module project the copy-resources task does run. It works in version 2.3.
Example config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/extracted-config/</outputDirectory>
<resources>
<resource>
<directory>target/dependency/WEB-INF//</directory>
<includes>
<include>bla.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Error message:
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] 'copy-resources' was specified in an execution, but not found in the plugin [INFO] ------------------------------------------------------------------------
Seems to be a problem with the standard maven version of the resources plugin. Fixed this issue by including following entry into the pluginManagement section of my maven configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
</plugin>