I know this has been asked before but I'm still struggling on solving this issue. When I load projects into eclipse I get the following exception:
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-antrun-plugin:1.7:run (execution: generate-webapp-name, phase: compile)
My maven project consists of many modules (>200) and it causes problems on all of them.
I tried ignoring the run
and compile
goals in my pom.xml
(in the parent module):
<pluginManagement>
<plugins>
<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.7,)</versionRange>
<goals>
<goal>compile</goal>
<goal>run</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
But it still doesn't work.
Maven --> Update Projects...
and see if that helps. – Giltmvn clean install
(outside of Eclipse). Then, go back to Eclipse, select all of the projects, and refresh them. – Giltmvn eclipse:clean
andmvn eclipse:eclipse
, nothing :/ – Aggravationmvn eclipse:eclipse
could actually be harmful. – Gilt