Maven项目常见错误】的更多相关文章

issue 1.Java compiler level does not match the version of the installed Java project facet. 或者 One or more constraints have not been satisfied. 或者 Dynamic Web Module 3.1 requires Java 1.7 or newer. 解决办法: 在项目中的pom.xml文件中添加以下配置: 说明:以下是根据你自己使用的jdk版本来配置的…
一.Cannot change version of project facet Dynamic Web Module to 3.0. 和 One or more constraints have not been satisfied. 需要修改 project的 properties的 project facts的 Dynamic Web Moudle Version版本和 web.xml中的版本一直,然后 在通过maven update 2.3:<!DOCTYPE web-app PUBLI…
程序包com.sun.xml.internal.ws.spi不存在 当maven项目里面有用到JDK内部的一些类,接口(如:com.sun.xml.internal.ws.spi.ProviderImpl)等的时候,用maven编译一般会出现如下错误 [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.10…
1.Tomcat启动报错:server tomcat start within 45 seconds 问题原因:由于eclipse默认Tomcat设置是启动时间为45s,所以在45s内没有启动成功就会终止. 解决方案:http://jingyan.baidu.com/article/64d05a025c9969de55f73b23.html 2.Tomcat启动报内存溢出错误 : java.util.concurrent.ExecutionException: java.lang.OutOfMe…
安装eclips以及maven自行去了解,这里不讲解 一.新建一个 maven 项目. 二.下一步选择项目架构 三.填写相关信息 group id: 一般都是 com点 项目名 aftriact.id 工程的名称 然后点击结束 四.消除错误或者警告 第一个 maven 项目创建成功之后,是会提示警告或者错误,这时我们需要 作以下的配置. 第一步:添加 tomcat 的库. eclips => preferences 然后选择自己的tomcat的安装目录,然后选择相应的tomact的版本,结束并应…
使用Eclipse导入Maven项目失败,提示: An internal error occurred during: "Importing Maven projects". Unsupported IClasspathEntry kind=4 修复这个问题须要做两件事 1.保证m2e插件的版本号高于 1.1.0.假设没有则到网站升级 : https://repository.sonatype.org/content/repositories/forge-sites/m2e/1.1.0…
在使用eclipse创建maven项目的时候,有时候会出现这个问题: web.xml is missing and 'failOnMissingWebXml' is set to true我遇到这个问题是因为现在一般的web项目已经不需要web.xml文件了,于是我把它删掉了(eclipse自动创建了这个问题,但是我不需要所以删掉了),然后就提示了这个问题. 这个问题的原因是maven看到我们项目的类型是war 所以他说怎么可以没有web.xml了呢? 但是web.xml本来就不是必须的,我们总…
maven报错非法字符:\65279 错误 开发中一个项目很早就报这个错,maven报错非法字符:\ 错误, 开发过程中偶尔会遇到,今天终于下决心要解决这个问题 编译java 文件的时候,有些java文件报非法字符 \65279错误, 在网上找和很多 方法,也试了很多方法, 换JDK; 添加maven-compiler-plugin插件,更改maven-compiler-plugin属性,更换版本; 换editplus编译器; 修改文件编码貌似也不靠谱(反正我修改之后还是报错~~),后来试了一个…
Description Resource Path Location Type Failure to transfer org.apache.maven:maven-core:jar:2.0.6 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central ha…
pom.xml文件头报错 场景 例Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from https://repo.maven.apache.org/maven2 was cached in the local repository 解决方案 找到本地maven仓库中maven-surefire-plugin对应的版本文件夹(一般在..\repository\org\apache\mav…