Reputation: 25376
I am importing a project which works and built fine through "mvn clean install" and old eclipse Kepler. I am now importing the project to eclipse Luna/Mars, and got the following errors:
Plugin execution not covered by lifecycle configuration: net.alchim31.maven:scala-maven-plugin:3.2.1:compile (execution: scala-compile, phase: process-resources)
After read some articles, I added the following to my pom.xml (the parent pom.xml) of a few modules:
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>3.2.1</version>
<goals>
<goal>compile</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Then I got a new error on the pom.xml for all child modules:
Cannot parse lifecycle mapping metadata for maven project MavenProject:myProject
What additional settings I need to do to get rid of this error? Thank you!
Upvotes: 0
Views: 2281
Reputation: 25376
I got things to work by doing the following:
In Eclipse -> Preference -> Maven -> Discovery -> Open Catalog -> Install Takari Lifecycle support
Upvotes: 1