Hi,
does anybody knows a way to configure lifecycle mapping for multiple
plugin executions? For example I have configured multiple executions for
a maven-antrun-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>execution1</id>
<goals>
<goal>run</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
...
</configuration>
</execution>
<execution>
<id>execution1</id>
<goals>
<goal>run</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
...
</configuration>
</execution>
</executions>
</plugin>
I need to ignore the first execution and to execute the second. But I
didn't find a way to configure this behavior in
lifecycleMappingMetadata. For example:
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<versionRange>[1.3,)</versionRange>
<goals>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
There is no way to specify phase for pluginExecution.
Anybody knows is it possible to configure the behavior I described?
Best regards,
Marius
_______________________________________________
m2e-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users