This is most likely http://jira.codehaus.org/browse/MNGECLIPSE-823 .
Latest m2e 0.9.7 dev builds contain a possible solution to this problem,
so you may want to try. You can install m2e 0.9.7 dev builds from
http://m2eclipse.sonatype.org/update-dev/ .
Also, beware of http://jira.codehaus.org/browse/MNGECLIPSE-645 .
--
Regards,
Igor
Nord, James wrote:
Hi all,
I have a build that fails with the following:
11/12/08 12:11:29 GMT: Build errors for common-checkstyle;
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
construct build plan for: CAB Checkstyle configuration settings
Id: com.nds.cab.build:common-checkstyle:jar:0.0.1-SNAPSHOT
task-segment: [process-test-resources]. Reason: Failed to load plugin
descriptor for:
com.nds.cab.build:maven-version-plugin:1.0-SNAPSHOT:getVersion. Cannot
discover it's default phase, specified in its plugin descriptor.
This works fine if I close the maven-version-plugin in the workspace or
I run from the command line. (plugin is installed into local repo)
I can get this to work by doing a mvn package (or install) of the
maven-version-plugin from the command line, but then the next time the
workspace is cleared it will fail again (as m2e doesn't call the goal to
generate the plugin.xml)
I added generate-resources to the "Goals to invoke after a project
clean" and "Goals to invoke on resource changes" but the plugin.xml is
not generated, but that comes before the default of
"process-test-resources" in the lifecycle phase so I am perplexed.
Running mvn clean generate-resources from the command line does generate
the plugin.xml.
Also (rather worryingly) is the errors from the failed build do not show
up as "problems" in the problem view or as red 'x' marks on the prjects
themselves. So unless you have the maven console window open you don't
know anything is actually wrong.
Eclipse ganymede SR1, m2e latest stabel release (0.9.6.20080905-0917),
java 1.6.0 update 10, windowx xp sp3.
The only related issue I could find was
http://jira.codehaus.org/browse/MNGECLIPSE-380
<blocked::http://jira.codehaus.org/browse/MNGECLIPSE-380> which was
fixed back in 0.9.4
(If I do a clean project on the plugin all I see in the project is
"11/12/08 13:27:06 GMT: [INFO] Scanning for projects...")
Regards,
/James
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email