Maven pom.xml报错解决】的更多相关文章

用Maven建了一个web工程,总是在pom.xml头的地方报错: 大概是: Original error: Could not transfer artifact org.hamcrest:hamcrest-core:jar:1.1 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000. 试了很多方法 1,删除C:\Users\zenobia\.m2\repository…
首先介绍背景,在eclipse中导入一个maven的项目,在我之前的电脑上导入好用,在自己的电脑上导入居然pom报错了Missing artifact junit:junit:jar:4.11,还会有一个什么多行声明的错误,红叉很烦人!我在本地的maven仓库中都看了一遍,jar包都下载了,clean了项目,也重新在项目右键->maven->update project了,pom文件还是报错,文件内容肯定没错.一通烦人,开始很生气,关闭重启IDE导入了很多次,导致了我慌不择路了.有人说是版本不…
再在项目上强制update一下就可以了 如下: 此外使用maven时用默认的仓库速度会过慢 下载很小的jar包都需要很久 推介使用oschina的源 使用在这里:…
eclipse中创建Maven项目时 pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver 解决方案1.在pom文件中加入maven-war-plugin <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>…
新建maven工程时,pom.xml报错:第一行报如下错误:multiple annotations found at this line后添加org.eclipse.m2e相关的plugin配置后,错误消失,完整pom.xml如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem…
在maven本地库中找到对应的地址:org.apache.maven.doxia找到对应的文件:doxia-logging-api发现文件中包含有lastUpdated字样,表示该文件并未下载完成,然后将整个2.6版本删除,项目上右键>Maven>Update project 即可. <Failure to find org.apache.maven.doxia:doxia-logging-api:jar:1.1 in http://repo.maven.apache.org/mav&g…
打开struts-config.xml 报错 解决办法Could not open the editor 错误信息:Could not open the editor: Project XXX is not configured as a MyEclipse Web-Struts Project. Therefore the MyEclipse Struts Editor may not be used with struts-config.xml. The default XML Editor…
如题,maven项目eclipse提示pom.ml有错,提示信息就是org.apache.maven.plugin.war.WarMojo. 然后执行 maven install 出现如下错误提示 [INFO] --- maven-war-plugin:2.2:war (default-war) @ ams-web --- [WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo java.lang.TypeNotPresent…
创建maven项目时pom.xml时: 出现如下报错信息: Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or u…
这里之前有个红色叉叉 改完了pom.xml文件之后需要:右键工程-MavenMyEclipse-Update Project 刷新Maven web 工程,即可解决此问题…