Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] m2e lifecycleMapping | Plugin execution not covered by lifecycle configuration

Just forcing m2e run the mojo during workspace build most likely will
not do much good, unless the mojo uses BuildContext API. m2e will not
know about sources or any other resources generated on filesystem, nor
it will be able to guard against endless builds or random crashes.

To quote the page you linked

<quote>
execute tells m2e to execute the action as part of Eclipse workspace full or incremental build. Beware that m2e does not provide any safeguards against rogue maven plugins that leak classloaders, modify random files inside workspace or throw nasty exceptions to fail the build. Use this as the last resort and make sure you know what you are doing.
</quote>


--
Regards,
Igor

On 2013-03-14 1:54 PM, King Holger (CI/AFP2) wrote:
Dear m2e community,
when reading:
_http://wiki.eclipse.org/M2E_plugin_execution_not_covered#metadata_source_lookup_order_
I thought, I could map a plugin like “axis2-wsdl2code-maven-plugin” to a
Maven lifecycle – here “generate-sources” to achieve getting a valid POM
without the following exception:
Plugin execution not covered by lifecycle configuration:
org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code
(execution: default, phase: generate-sources)
Am I wrong using the below configuration?
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<version>1.6.2</version>
<executions>
_<__execution__>_
<phase>generate-sources</phase>
<goals>
<goal>wsdl2code</goal>
</goals>
</execution>
</executions>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-wsdl2code-maven-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal></goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
...
</configuration>
</plugin>


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



Back to the top