当将Maven项目导入Eclipse时,我得到以下错误:
没有市场条目-- exec-maven-plugin:1.2.1错误
而且看起来它会导致导入后的进一步构建问题。
生命周期配置未涵盖的插件执行: org.codehaus.mojo:exec-maven-plugin:1.2.1:java (执行:默认,阶段:生成-源)
我是不是漏掉了一个插件,或者我的pom.xml有什么问题?
已安装的m2e:
m2e - org.eclipse.m2e.feature.feature.group集成(包括孵化组件) 1.5.0.20131218-1208 org.eclipse.m2e.feature.feature.group Eclipse.org - m2e Eclipse开发工具3.8.2.v20130116-090414-8-8nFu3FNOfwKLRuqgXKIy9z0I83 org.eclipse.jdt.feature.group Eclipse.org Eclipse平台4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7 org.eclipse.platform.feature.group Eclipse.org 日蚀RCP 4.2.2.v20130129-152330-7IARAABrMQkGSvMgQnUlz-DQz00h org.eclipse.rcp.feature.group Eclipse.org
提前谢谢。
发布于 2014-02-12 08:08:14
问题是Eclipse的m2e插件不知道exec plugin,您可以通过以下方法解决这个问题:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<versionRange>[1.2.1,)</versionRange>
<goals>
<goal>java</goal>
<goal>exec</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>https://stackoverflow.com/questions/21721846
复制相似问题