Hello,

I use the goal resources:copy-resources of the Maven Resources Plugin. This
goal doesn't exist in the 2.2 version, so I define this in the child pom.xml

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-resources-plugin
  </artifactId>
    <version>2.3</version>
    <executions>
      <execution>
        <id>copy-resources</id>
        <phase>validate</phase>
        <goals>
          <goal>copy-resources</goal>
        </goals>
        ...
      </execution>
    </executions>
    <configuration>
      ...
    </configuration>
</plugin>

But I've got this error : 'copy-resources' was specified in an execution,
but not found in the plugin.

The help:effective-pom goal say I use the 2.2 version of the plugin. 

If I specify this in the parent pom it's fine :

<pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-resources-plugin</artifactId>
      <version>2.3</version>
    </plugin>
  </plugins>
</pluginManagement>

Why ? :D

Thanks.

Rémy.
-- 
View this message in context: 
http://www.nabble.com/It%27s-works%2C-but-I-don%27t-understand-why...-tp21215546p21215546.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to