Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Maven ant run plugin not included in Eclipse lifecycle #120

Open
katheris opened this issue Dec 16, 2016 · 1 comment
Open

Maven ant run plugin not included in Eclipse lifecycle #120

katheris opened this issue Dec 16, 2016 · 1 comment

Comments

@katheris
Copy link
Contributor

When pulling into Eclipse get the error:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.8:run (execution: default, phase: validate) pom.xml /myArtifactId line 390 Maven Project Build Lifecycle Mapping Problem

@rvennam
Copy link

rvennam commented Jan 4, 2017

http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
netty/netty#87
http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin

Quick Fix suggestion by M2Eclipse:

We add the following pluginManagement to pom.xml

        <pluginManagement>
        	<plugins>
        		<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        		<plugin>
        			<groupId>org.eclipse.m2e</groupId>
        			<artifactId>lifecycle-mapping</artifactId>
        			<version>1.0.0</version>
        			<configuration>
        				<lifecycleMappingMetadata>
        					<pluginExecutions>
        						<pluginExecution>
        							<pluginExecutionFilter>
        								<groupId>
        									org.apache.maven.plugins
        								</groupId>
        								<artifactId>
        									maven-antrun-plugin
        								</artifactId>
        								<versionRange>
        									[1.8,)
        								</versionRange>
        								<goals>
        									<goal>run</goal>
        								</goals>
        							</pluginExecutionFilter>
        							<action>
        								<ignore></ignore>
        							</action>
        						</pluginExecution>
        					</pluginExecutions>
        				</lifecycleMappingMetadata>
        			</configuration>
        		</plugin>
        	</plugins>
        </pluginManagement>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants