maven配置jetty出现Cannot load implementation hint 'org.mortbay.jetty.nio.SelectChannelConnector'错误
来源:互联网 发布:php 流媒体 编辑:程序博客网 时间:2024/05/19 12:25
错误信息如下:
[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 2.611 s[INFO] Finished at: 2014-03-21T18:17:04+08:00[INFO] Final Memory: 8M/14M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.14.v20131031:run (default-cli) on project assai: Unable to parse configuration of mojo org.mortbay.jetty:jetty-maven-plugin:8.1.14.v20131031:run for parameter connectors: Cannot load implementation hint 'org.mortbay.jetty.nio.SelectChannelConnector' -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginConfigurationException
pom配置为:
<plugin><groupId>org.mortbay.jetty</groupId><artifactId>jetty-maven-plugin</artifactId><configuration><webDefaultXml>${basedir}/${webapp}/src/main/resources/jetty/webdefault.xml</webDefaultXml><scanIntervalSeconds>10</scanIntervalSeconds><webAppConfig><contextPath>/</contextPath></webAppConfig><connectors><connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"><port>8088</port></connector></connectors></configuration></plugin>
错误原因,不小心把version 标签删掉了,结果默认用了最新版8.1.14.v20131031,从7.0.0.1beta3开始SelectChannelConnector就改到了org.eclipse.jetty.server.nio.SelectChannelConnector
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> 改为 <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">一切正常
后来发现配置项变动的还不少呢,官方实例有说明
<project>...<plugins>...<plugin><groupId>org.mortbay.jetty</groupId><artifactId>maven-jetty-plugin</artifactId><configuration><scanIntervalSeconds>10</scanIntervalSeconds> <!-- Configure the webapp --><contextPath>/biggerstrongerbetterfaster</contextPath><tmpDir>target/not/necessary</tmpDir><webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml><overrideWebXml>src/main/resources/override-web.xml</overrideWebXml> <!-- OR, as of jetty6.1.6rc0, you can use the webAppConfig element instead --> <webAppConfig><contextPath>/test</contextPath> <tempDirectory>${project.build.directory}/work</tempDirectory> <defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor> <overrideDescriptor>src/main/resources/override-web.xml</overrideDescriptor> </webAppConfig> <!-- configure the container -->... </configuration></plugin></plugins></project>
我说杂webDefaultXml都失效了呢
0 0
- maven配置jetty出现Cannot load implementation hint 'org.mortbay.jetty.nio.SelectChannelConnector'错误
- Maven 在pom.xml中配置Jetty出现'org.eclipse.jetty.server.nio.SelectChannelConnector' cannot be loaded异常
- configuration using 'implementation' attribute: 'org.eclipse.jetty.server.nio.SelectChannelConnector
- MVN JETTY:RUN 报错 The plugin 'org.mortbay.jetty:maven-jetty-plugin' does not exis
- OSGi http服务器配置之org.mortbay.jetty.jar无法找到
- jetty学习1-SelectChannelConnector
- jetty的SelectChannelConnector分析
- jetty学习1-SelectChannelConnector
- jetty的SelectChannelConnector分析
- Jetty的SelectChannelConnector分析
- Jetty的SelectChannelConnector分析
- Jetty的SelectChannelConnector分析
- Jetty的SelectChannelConnector分析
- Jetty的SelectChannelConnector分析
- Jetty源码分析之NIO实现的Connector:SelectChannelConnector
- osgi 构建B/S工程找不到。org.mortbay.jetty
- java 取消文件下载报异常org.mortbay.jetty.EofException
- 运行jetty-maven-plugin时,出现错误
- android 为TextView添加边框
- 图像处理中的L1-normalize 和L2-normalize
- [cocos2d-x菜鸟学习记录]解析示例helloWorld(上)
- Jquery AJAX POST和GET区别
- MTK: android: TD、HSPA、GPRS的projectconfig.mk配置:
- maven配置jetty出现Cannot load implementation hint 'org.mortbay.jetty.nio.SelectChannelConnector'错误
- FlexViewer Module 图表控件 Error #1009
- Android中文文档
- jsp和servlet的区别?
- iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案
- MTK driver 1
- 银联通信MAC算法
- 由浅入深分析mybatis通过动态代理实现拦截器(插件)的原理
- Linux网络编程入门