[英]Maven pom error in eclipse with Scala
I am importing a project which works and built fine through "mvn clean install" and old eclipse Kepler. 我正在导入一个可以正常工作的项目,该项目可以通过“ mvn clean install”和旧日食Kepler构建良好。 I am now importing the project to eclipse Luna/Mars, and got the following errors: 我现在正在导入项目以使Luna / Mars黯然失色,并出现以下错误:
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: 阅读一些文章之后,我将以下内容添加到了一些模块的pom.xml(父pom.xml)中:
<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: 然后我在所有子模块的pom.xml上收到了一个新错误:
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! 谢谢!
I got things to work by doing the following: 通过执行以下操作,我可以使事情工作:
In Eclipse -> Preference -> Maven -> Discovery -> Open Catalog -> Install Takari Lifecycle support 在Eclipse->首选项-> Maven->发现->打开目录->安装Takari生命周期支持
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.