[ http://jira.codehaus.org/browse/MOJO-345?page=comments#action_61965 ]
Keith E Campbell commented on MOJO-345:
---------------------------------------
I was able to get his plugin working with Maven version: 2.0.2 by commenting
out the 'configuration' tag in the
/src/main/resources/META-INF/maven/lifecycle.xml (shown below), and then doing
a mvn install.
I don't know if there is a version incompatiliby issue with the 2.0.2 release
and this plugin or some other reason (or some other plugin) with the
configuration attribute.
Keith
<lifecycles>
<lifecycle>
<id>surefire</id>
<phases>
<phase>
<id>test</id>
<!--
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
-->
</phase>
</phases>
</lifecycle>
</lifecycles>
> BUILD ERROR, Unable to parse lifecycle mapping file
> ---------------------------------------------------
>
> Key: MOJO-345
> URL: http://jira.codehaus.org/browse/MOJO-345
> Project: Mojo
> Type: Bug
> Versions: 2.0
> Environment: Java 1.5
> Reporter: Keith E Campbell
> Attachments: pom.xml
>
>
> When trying to run the surefire-report-maven-plugin (2.0-beta-2-SNAPSHOT), I
> get the below build error. My guess is that the parser is choking becuase it
> is not expecting some of the "configuration" entries that are included in my
> POM.
> I've attached my POM file for the project.
> [INFO] Preparing surefire-report:report
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Unable to parse lifecycle mapping file: Unrecognised tag:
> 'configuration' (position: START_TAG seen ...</id>\n
> <configuration>... @7:24)
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to parse
> lifecycle mapping file: Unrecognised tag: 'configuration' (position:
> START_TAG seen ...</id>\n <configuration>... @7:24)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:768)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:731)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:522)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException:
> Unrecognised tag: 'configuration' (position: START_TAG seen ...</id>\n
> <configuration>... @7:24)
> at
> org.apache.maven.plugin.lifecycle.io.xpp3.LifecycleMappingsXpp3Reader.parsePhase(LifecycleMappingsXpp3Reader.java:518)
> at
> org.apache.maven.plugin.lifecycle.io.xpp3.LifecycleMappingsXpp3Reader.parseLifecycle(LifecycleMappingsXpp3Reader.java:396)
> at
> org.apache.maven.plugin.lifecycle.io.xpp3.LifecycleMappingsXpp3Reader.parseLifecycleConfiguration(LifecycleMappingsXpp3Reader.java:447)
> at
> org.apache.maven.plugin.lifecycle.io.xpp3.LifecycleMappingsXpp3Reader.read(LifecycleMappingsXpp3Reader.java:808)
> at
> org.apache.maven.plugin.descriptor.PluginDescriptor.getLifecycleMapping(PluginDescriptor.java:287)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:759)
> ... 18 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira