1、github下载源码
2、参照http://blog.csdn.net/wuyinxian/article/details/46382051
将maven项目转成eclipse的工程
3、执行完上述操作后,会有两个错误,也是上一步文章中指出的两个错误:
1)
1.Failure to transfer io.netty:netty-tcnative:jar:${tcnative.classifier}:2.0.3.Final
凡是出错的pom文件
-
将其<groupId>${project.groupId}</groupId>
-
<artifactId>netty-tcnative</artifactId>
-
<classifier>${os.detected.classifier}</classifier>
-
中的 <classifier>${os.detected.classifier}</classifier>注释掉,
-
并添加 <version>1.1.32.Fork1</version>
2)
2.Plugin execution not covered by lifecycle configuration:
org.codehaus.mojo:build-helper-maven-plugin:1.10:add-source
(execution: add-source, phase: generate-sources)
解决办法
官网给出解释及解决办法:http://wiki.eclipse.org/M2E_plugin_execution_not_covered
这里有人说下面这样也可以解决, 即 标签外再套一个 标签,我试验是成功的:
http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin
-
<build>
-
<pluginManagement>
-
<plugins>
-
<plugin> ... </plugin>
-
<plugin> ... </plugin>
-
....
-
</plugins>
-
</pluginManagement>
-
</build>
http://blog.csdn.net/wuyinxian/article/details/46382051
http://donald-draper.iteye.com/blog/2382829
http://blog.csdn.net/xxd851116/article/details/25197373
阅读(2777) | 评论(0) | 转发(0) |