且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

eclipse 使用 maven 遇到的问题

更新时间:2022-08-13 11:00:19

eclipse 默认 3.6 和 3.7 已经添加 maven的 插件了。。

 

但是不是很好用。

 

遇到了一个

 

 

Multiple annotations found at this line:
	- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (execution: 
	 default-resources, phase: process-resources)
	- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources (execution: 
	 default-testResources, phase: process-test-resources)

 这样的异常怎么也解决不了。。

 

后来发现 这个异常是 eclipse 的自带 maven的异常。

 

使用 m2eclispe 替换 eclpse的maven。

 

解决

 

打包:

 

war:war -Dmaven.test.skip=true

 

启动jetty。

 

 

jetty:run -Dmaven.test.skip=true
 

下载插件。现在已经找不到这个插件的下载了。

 

http://dl.iteye.com/topics/download/1e25700a-df5f-3ea5-90ad-4b1e4b086d6e


maven 调试
增加参数

MAVEN_OPTS
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=n