Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Secondary "Lifecycle mapping" for m2eclipse in indigo ?

Now it works correctly.
Thanks a lot.

Snjeza

Vlad Tatavu wrote:
Hm... If u got "Duplicate lifecycle mapping metadata for ...", it means you declared a lifecycle mapping twice, and that's not what you need to do :)

All you need is a <pluginExecution> for your new configurator.
Something like this:
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<versionRange>[2.0,)</versionRange>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</pluginExecutionFilter>
<action>
<configurator>
<id>test.MyTestProjectConfigurator</id>
</configurator>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>

Please note that there is no <lifecycleMapping> or <lifecycleMappings> in the metadata above.

Vlad

On 3/9/2011 4:55 PM, Snjezana Peco wrote:
Vlad Tatavu wrote:
On 3/9/2011 4:33 PM, Snjezana Peco wrote:
Vlad Tatavu wrote:
Did u declare your project configurator(s) as secondary to another
configurator in plugin.xml?


Yes, I did.
Is it necessary to add lifecycle mapping for secondary configurators?

Snjeza

I'm not sure what u mean...


I have defined secondary configurator to the wtp configurator in the
following way:

<extension point="org.eclipse.m2e.core.projectConfigurators">
<configurator
         id="org.jboss.tools.maven.jsf.configurator"

class="org.jboss.tools.maven.jsf.configurators.JSFProjectConfigurator"
         name="%JSF_Project_configurator"

secondaryTo="org.maven.ide.eclipse.configuration.wtp.configurator"/>
</extension>

You can find the org.maven.ide.eclipse.configuration.wtp.configurator
on git://github.com/sonatype/m2eclipse-wtp.git (branch 0.13.x).
Could you explain me what I need to do in order to run this configurator?
I tried to add lifecycle mapping, but got the "Duplicate lifecycle
mapping metadata for ...". error.

Snjeza




_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



Back to the top