- 浏览: 950218 次
文章分类
- 全部博客 (428)
- Hadoop (2)
- HBase (1)
- ELK (1)
- ActiveMQ (13)
- Kafka (5)
- Redis (14)
- Dubbo (1)
- Memcached (5)
- Netty (56)
- Mina (34)
- NIO (51)
- JUC (53)
- Spring (13)
- Mybatis (17)
- MySQL (21)
- JDBC (12)
- C3P0 (5)
- Tomcat (13)
- SLF4J-log4j (9)
- P6Spy (4)
- Quartz (12)
- Zabbix (7)
- JAVA (9)
- Linux (15)
- HTML (9)
- Lucene (0)
- JS (2)
- WebService (1)
- Maven (4)
- Oracle&MSSQL (14)
- iText (11)
- Development Tools (8)
- UTILS (4)
- LIFE (8)
最新评论
-
Donald_Draper:
Donald_Draper 写道刘落落cici 写道能给我发一 ...
DatagramChannelImpl 解析三(多播) -
Donald_Draper:
刘落落cici 写道能给我发一份这个类的源码吗Datagram ...
DatagramChannelImpl 解析三(多播) -
lyfyouyun:
请问楼主,执行消息发送的时候,报错:Transport sch ...
ActiveMQ连接工厂、连接详解 -
ezlhq:
关于 PollArrayWrapper 状态含义猜测:参考 S ...
WindowsSelectorImpl解析一(FdMap,PollArrayWrapper) -
flyfeifei66:
打算使用xmemcache作为memcache的客户端,由于x ...
Memcached分布式客户端(Xmemcached)
Maven学习记录3——创建、编译、打包、运行项目 :http://blog.csdn.net/yaya1943/article/details/48464371
使用maven编译Java项目:http://www.tuicool.com/articles/YfIfIrq
netty github 导入 Eclipse:http://www.th7.cn/Program/java/201502/389732.shtml
netty源码编译环境搭建 :http://blog.csdn.net/wuyinxian/article/details/46382051
Plugin error: execution not covered by lifecycle configuration:
https://stackoverflow.com/questions/7391201/plugin-error-execution-not-covered-by-lifecycle-configuration
Execution Not Covered:http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
netty项目github地址:https://github.com/netty/netty.git
由于netty项目在github中,没有.project和.classpath文件,所以不能够直接转换为eclipse工程Maven项目,要手动去编译,具体可参考netty源码编译环境搭建和netty github导入Eclipse这两篇文章。
我们总结一下从github检出netty项目,编译maven项目,主要遇到的问题:
1.Failure to transfer io.netty:netty-tcnative:jar:${tcnative.classifier}:2.0.3.Final
这个问题主要是tcnative jar在netty-parent:
的POM中定义了如下片段:
根据操作系统探测tcnative的classifier,我们只需要将上面这句话注释掉如下:
同时在相应子模块项目中,tcnative包依赖中将:
改为:
这里我们是以netty-handler子模块为例:
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)
这个问题主要是执行不能被声明周期配置覆盖导致,我们以netty-common子模块为例:
groupId为org.codehaus.mojo,artifactId为build-helper-maven-plugin的add-source执行不行被生命周期覆盖,解决方式,在pom文件的build标签下加入pluginManagement对应的片段:
还有一种方式为配置Maven -> Lifecycle mapping->lifecycle-mapping-metadata.xml ,
官方显示这种方法针对Eclipse 4.2,具体配置在Windows -> Preferences -> Maven -> Lifecycle mapping ,文件(eclipse/plugins/org.eclipse.m2e.lifecyclemapping.defaults_1.2.0.20120903-1050.jar/lifecycle-mapping-metadata.xml)内容如下:
注意:pluginExecutionFilter中的groupId,artifactId,goal的对应关系。
在配置完后记得要重新加载。如果你有多个Eclipse工作空间或者为一个团队项目,强烈建立使用配置POM文件的方式,,即第一种方式。
然后更新项目模块(maven-》update勾选force online update)。
如果还有问题,看看是不是JRE的原因(JRE6-8),一般为JRE7,
如果项目没有maven依赖包(Maven Dependencies),查看项目的.class
和.project文件
.class文件是否包含如下信息:
不包括,则添加上,不同,则修改。
.project文件是否为如下:
对于没有含有项,则添加上,不同,则修改。
最后,记得刷新工作空间项目。
使用maven编译Java项目:http://www.tuicool.com/articles/YfIfIrq
netty github 导入 Eclipse:http://www.th7.cn/Program/java/201502/389732.shtml
netty源码编译环境搭建 :http://blog.csdn.net/wuyinxian/article/details/46382051
Plugin error: execution not covered by lifecycle configuration:
https://stackoverflow.com/questions/7391201/plugin-error-execution-not-covered-by-lifecycle-configuration
Execution Not Covered:http://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
netty项目github地址:https://github.com/netty/netty.git
由于netty项目在github中,没有.project和.classpath文件,所以不能够直接转换为eclipse工程Maven项目,要手动去编译,具体可参考netty源码编译环境搭建和netty github导入Eclipse这两篇文章。
我们总结一下从github检出netty项目,编译maven项目,主要遇到的问题:
1.Failure to transfer io.netty:netty-tcnative:jar:${tcnative.classifier}:2.0.3.Final
这个问题主要是tcnative jar在netty-parent:
<groupId>io.netty</groupId> <artifactId>netty-parent</artifactId> <packaging>pom</packaging> <version>4.1.13.Final-SNAPSHOT</version>
的POM中定义了如下片段:
<tcnative.artifactId>netty-tcnative</tcnative.artifactId> <tcnative.version>2.0.3.Final</tcnative.version> <tcnative.classifier>${os.detected.classifier}</tcnative.classifier>
根据操作系统探测tcnative的classifier,我们只需要将上面这句话注释掉如下:
<!-- <tcnative.classifier>${os.detected.classifier}</tcnative.classifier> -->
同时在相应子模块项目中,tcnative包依赖中将:
<dependency> <groupId>${project.groupId}</groupId> <artifactId>${tcnative.artifactId}</artifactId> <classifier>${tcnative.classifier}</classifier> <optional>true</optional> </dependency>
改为:
<dependency> <groupId>${project.groupId}</groupId> <artifactId>${tcnative.artifactId}</artifactId> <!-- <classifier>${tcnative.classifier}</classifier> --> <version>${tcnative.version}</version> <optional>true</optional> </dependency>
这里我们是以netty-handler子模块为例:
<parent> <groupId>io.netty</groupId> <artifactId>netty-parent</artifactId> <version>4.1.13.Final-SNAPSHOT</version> </parent> <artifactId>netty-handler</artifactId> <packaging>jar</packaging>
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)
这个问题主要是执行不能被声明周期配置覆盖导致,我们以netty-common子模块为例:
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.10</version> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${collection.src.dir}</source> </sources> </configuration> </execution> </plugin>
groupId为org.codehaus.mojo,artifactId为build-helper-maven-plugin的add-source执行不行被生命周期覆盖,解决方式,在pom文件的build标签下加入pluginManagement对应的片段:
<build> <pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <!-- plugin执行器过滤器 --> <pluginExecution> <!-- plugin执行器过滤器 --> <pluginExecutionFilter> <!-- 这里的groupId和artifactId和上面的相对应 --> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <!-- 版本大于等于1.0.0 --> <versionRange>[1.0.0,)</versionRange> <goals> <!-- 目标与上面对应者execution goals中goal --> <goal>add-source</goal> <goal>add-test-source</goal> </goals> </pluginExecutionFilter> <!-- plugin执行器忽略 groupId,artifactId 对应的goals中goal --> <action> <!--忽略执行 --> <ignore/> </action> </pluginExecution> <!-- plugin执行器过滤器 --> <pluginExecution> <!-- plugin执行器过滤器 --> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>parse-version</goal> <goal>check-style</goal> </goals> </pluginExecutionFilter> <!-- plugin执行器忽略 groupId,artifactId 对应的goals中goal --> <action> <ignore/> </action> </pluginExecution> <!-- plugin执行器过滤器 --> <pluginExecution> <!-- plugin执行器过滤器 --> <pluginExecutionFilter> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <versionRange>[1.0.0,)</versionRange> <goals> <goal>execute</goal> </goals> </pluginExecutionFilter> <!-- plugin执行器忽略 groupId,artifactId 对应的goals中goal --> <action> <ignore/> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>
还有一种方式为配置Maven -> Lifecycle mapping->lifecycle-mapping-metadata.xml ,
官方显示这种方法针对Eclipse 4.2,具体配置在Windows -> Preferences -> Maven -> Lifecycle mapping ,文件(eclipse/plugins/org.eclipse.m2e.lifecyclemapping.defaults_1.2.0.20120903-1050.jar/lifecycle-mapping-metadata.xml)内容如下:
<?xml version="1.0" encoding="UTF-8"?> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>buildnumber-maven-plugin</artifactId> <goals> <goal>create-timestamp</goal> </goals> <versionRange>[0.0,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <goals> <goal>list</goal> </goals> <versionRange>[0.0,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.zeroturnaround</groupId> <artifactId>jrebel-maven-plugin</artifactId> <goals> <goal>generate</goal> </goals> <versionRange>[0.0,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <goals> <goal>compile</goal> </goals> <versionRange>[0.0,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <goals> <goal>copy-dependencies</goal> <goal>unpack</goal> </goals> <versionRange>[0.0,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata>
注意:pluginExecutionFilter中的groupId,artifactId,goal的对应关系。
在配置完后记得要重新加载。如果你有多个Eclipse工作空间或者为一个团队项目,强烈建立使用配置POM文件的方式,,即第一种方式。
然后更新项目模块(maven-》update勾选force online update)。
如果还有问题,看看是不是JRE的原因(JRE6-8),一般为JRE7,
如果项目没有maven依赖包(Maven Dependencies),查看项目的.class
和.project文件
.class文件是否包含如下信息:
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_17"> <attributes> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry>
不包括,则添加上,不同,则修改。
.project文件是否为如下:
<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>netty_trunk</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>org.eclipse.m2e.core.maven2Builder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription>
对于没有含有项,则添加上,不同,则修改。
最后,记得刷新工作空间项目。
发表评论
-
Maven 拉取jar错误 resolution will not be reattempted until
2020-11-19 20:39 1949jar从仓库拉取不到,抛出如下错误: as cached in ... -
netty NioSocketChannel解析
2017-09-29 12:50 1230netty 抽象BootStrap定义:http://dona ... -
netty Pooled字节buf分配器
2017-09-28 13:00 1964netty 字节buf定义:http://donald-dra ... -
netty Unpooled字节buf分配器
2017-09-26 22:01 2358netty 字节buf定义:http://donald-dra ... -
netty 抽象字节buf分配器
2017-09-26 08:43 1255netty 字节buf定义:http:// ... -
netty 复合buf概念
2017-09-25 22:31 1252netty 字节buf定义:http://donald-dra ... -
netty 抽象字节buf引用计数器
2017-09-22 12:48 1518netty 字节buf定义:http://donald-dra ... -
netty 抽象字节buf解析
2017-09-22 09:00 1758netty 通道接口定义:http://donald-drap ... -
netty 资源泄漏探测器
2017-09-21 09:37 1322netty 通道接口定义:http://donald-drap ... -
netty 字节buf定义
2017-09-20 08:31 2748netty 通道接口定义:http://donald-drap ... -
netty 默认通道配置后续
2017-09-18 08:36 2091netty 通道接口定义:http://donald-drap ... -
netty 默认通道配置初始化
2017-09-17 22:51 1937netty 通道接口定义:http://donald-drap ... -
netty 通道配置接口定义
2017-09-17 14:51 1011netty 通道接口定义:http://donald-drap ... -
netty NioServerSocketChannel解析
2017-09-16 13:01 1806netty ServerBootStrap解析:http:// ... -
netty 抽象nio消息通道
2017-09-15 15:30 1158netty 通道接口定义:http:/ ... -
netty 抽象nio字节通道
2017-09-14 22:39 1140netty 通道接口定义:http:/ ... -
netty 抽象nio通道解析
2017-09-14 17:23 889netty 通道接口定义:http://donald-drap ... -
netty 抽象通道后续
2017-09-13 22:40 1234netty Inboudn/Outbound通道Inv ... -
netty 通道Outbound缓冲区
2017-09-13 14:31 2122netty 通道接口定义:http:/ ... -
netty 抽象Unsafe定义
2017-09-12 21:24 992netty 通道接口定义:http:/ ...
相关推荐
NULL 博文链接:https://donald-draper.iteye.com/blog/2375487
利用git从github上拉取项目 1、git安装获取 2、git bash使用 3、配置用户名、密码,生成密钥文件 4、clone git资源 5、pull git资源 6、详细样例
从Github建remote远程项目
将springboot于netty 4.0 进行整合。能直接启动运行。
GitHub 完全指南:教程、常见问题解决方法和项目示例GitHub 完全指南:教程、常见问题解决方法和项目示例GitHub 完全指南:教程、常见问题解决方法和项目示例GitHub 完全指南:教程、常见问题解决方法和项目示例...
从github上找出来在C环境下完成编译的代码,经过编译零错误,可以完成编译
5个好玩的github游戏区开源项目,包含c++,java,javascript,rust。
目录 Qt官网下载/文档 Qt知名社区 Qt技术博客1 Qt开源框架 KDE/Qt Qt Github精品收藏1 -- IDE ...Qt sourceforge精品项目 Qt Git Client GUI Qt开发的大型开源软件 Qt开发环境搭建: Qt基础知识: C++学习书籍推荐:
IT面试题GitHub开源项目IT面试题GitHub开源项目IT面试题GitHub开源项目
手把手教你怎么从github上到项目到你的eclipse里面
SpringFramework源码 Github上下载的,用gradle编译好了(墙得厉害,网络龟速,LZ不容易%>_)喜欢研究Spring源码的童鞋可以看看,可以直接导入eclipse查看
利用爬虫把github上所有的项目数据爬下来,包含项目名,语言类型,星数等
新手引导,该项目是参考Github上开源的项目学习开发
Jenkins+GitHub实现C项目的集成开发测试部署,包括了Jenkins的具体安装配置等步骤
Github Actions 是 Microsoft 收购 GitHub 后推出的 CI/CD 服务,它提供了性能配置非常不错的虚拟服务器环境(E5 2vCPU/7G RAM),基于它可以进行构建、测试、打包、部署项目。对于公开仓库可免费无时间限制...
这些资源是本人学习使用GITHUB搭建项目过程中总结的一些经验文档,适用于初入GitHub学习使用。
从github获取starred库.ipynb
GitHub_40个Android开源项目,肯定值得下载!
WPF UI模板编译后生成的应用程序
本文档是开发过程中的使用github的工作总结,及遇到的问题和解决方法,一般在工作中,使用github出现问题上面的文档能很好的帮你解决。