zl程序教程

您现在的位置是:首页 >  后端

当前栏目

eclipse 使用 maven 遇到的问题

Maveneclipse 遇到 问题 使用
2023-09-11 14:21:14 时间
Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:m
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


mvn_eclipse.zip (9.9 MB) 下载次数: 332 maven 调试
MAVEN_OPTS

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



Java8 获取参数名及Idea/Eclipse/Maven配置(转载) 在Java8之前,代码编译为class文件后,方法参数的类型固定,但是方法名称会丢失,方法名称会变成arg0、arg1....。而现在,在Java8开始可以在class文件中保留参数名,这就给反射带来了极大的遍历。像mybatis等需要使用反射机制获取方法参数的时候就可以不用像以前一样需要使用类似于@Para之类的注解。
eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven... eclipse 中 maven的pom.xml文件发生错误:CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven...