maven配置jetty出现Cannot load implementation hint 'org.mortbay.jetty.nio.SelectChannelConnector'错误

错误信息如下:

 

[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配置为:


	org.mortbay.jetty
	jetty-maven-plugin
	
		${basedir}/${webapp}/src/main/resources/jetty/webdefault.xml
		10
		
			/
		
		
			
				8088
			
		
	

 

错误原因,不小心把version 标签删掉了,结果默认用了最新版8.1.14.v20131031,从7.0.0.1beta3开始SelectChannelConnector就改到了org.eclipse.jetty.server.nio.SelectChannelConnector

改为 一切正常

后来发现配置项变动的还不少呢,官方实例有说明


	...
	
		...
		
			org.mortbay.jetty
			maven-jetty-plugin
			
				10                                             				
                                
				/biggerstrongerbetterfaster
				target/not/necessary
				
					src/main/resources/webdefault.xml
				
				
					src/main/resources/override-web.xml
				           
	                         
				
					/test 
					
						${project.build.directory}/work
					 
					
						src/main/resources/webdefault.xml
					 
					
						src/main/resources/override-web.xml
					 
				           
				
				...			                                                      					
                            
		
	



 


我说杂webDefaultXml都失效了呢
 

你可能感兴趣的:(maven,jetty)