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

Maven ant run plugin not included in Eclipse lifecycle #120

Open

Description

@katheris

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

Activity

  1. rvennam commented on Jan 4, 2017

    @rvennam

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions