You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rémy <re...@gmail.com> on 2008/12/30 11:45:05 UTC
It's works, but I don't understand why...
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: It's works, but I don't understand why...
Posted by johoso <jo...@smarttrust.com>.
I thought I had solved it, but I didn't. The solution lay in moving the
particular troublesome module higher up in the build order. I couldn't find
any conflicts, but there must have been some. I did not use the
specification of the version in a parent pom.
Hope this helps someone.
johoso wrote:
>
> It seems like it works when I run it in Eclipse (Version: 3.4.1 Build id:
> M20080911-1700, Maven plugin: Maven Integration for Eclipse by Sonatype
> v0.9.6)
>
> But not in the following environment:
> @mvn -version
> Maven version: 2.0.9
> Java version: 1.6.0_06
> OS name: "sunos" version: "5.10" arch: "sparc" Family: "unix"
>
> However the workaround by Rémy works for the unix environment.
>
--
View this message in context: http://www.nabble.com/It%27s-works%2C-but-I-don%27t-understand-why...-tp21215546p25492254.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: It's works, but I don't understand why...
Posted by johoso <jo...@smarttrust.com>.
It seems like it works when I run it in Eclipse (Version: 3.4.1 Build id:
M20080911-1700, Maven plugin: Maven Integration for Eclipse by Sonatype
v0.9.6)
But not in the following environment:
@mvn -version
Maven version: 2.0.9
Java version: 1.6.0_06
OS name: "sunos" version: "5.10" arch: "sparc" Family: "unix"
However the workaround by Rémy works for the unix environment.
--
View this message in context: http://www.nabble.com/It%27s-works%2C-but-I-don%27t-understand-why...-tp21215546p25451930.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: It's works, but I don't understand why...
Posted by prenaud76 <pa...@ericsson.com>.
We have the exact same issue here and we also don't understand why the
"solution" found by Remy works.
It seems to me like a bug...
--
View this message in context: http://www.nabble.com/It%27s-works%2C-but-I-don%27t-understand-why...-tp21215546p23624547.html
Sent from the Maven - Users mailing list archive at Nabble.com.