maven中常遇到的一些错误

1,eclipse could not resolve archetype这个是在eclipse建立项目时,选择archetype时出现的:apache

在新建maven工程时报错:windows

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. 
 Could not resolve artifact 
   Missing org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE服务器

 

could not resolve archetype这个错误出现的缘由是,在建立项目时使用的是我本身配置的maven仓库中心,可是未启动nexus服务器,这时就会在maven中找不到。可是从新启动nexus时,它不会再从新尝试获取了。这个在错误的详细信息中会有提示。eclipse

 

could not resolve archetype解决办法是删除maven仓库下载的jar,即在maven的settings.xml配置的下载路径,而且更换一个workplace,而后从新配置一下maven,maven

 

从新导入项目就能够了。ui

 

2,was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]code

这个错误通常是在第一次更新jar的时候没有启动中心仓库nexus,可是从新启动后,它又不更新了。目前个人解决方法的是进入到nexus的目录下D:\Soft\windows\nexus-2.14.0-01-bundle\sonatype-work\nexus\storage\central,找到你更新失败的那个jar包的目录。从新在eclipse中 install 一下就能够了。这是maven中常常遇到的错误之一xml

更多关于游戏技术方面的资料请参考:http://www.youxijishu.comblog

相关文章
相关标签/搜索