您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> Java >> eclipse 创建maven项目时pomxml 报错如下

eclipse 创建maven项目时pomxml 报错如下

来源:网络整理     时间:2016/7/23 17:18:36     关键词:

关于网友提出的“ eclipse 创建maven项目时pomxml 报错如下”问题疑问,本网通过在网上对“ eclipse 创建maven项目时pomxml 报错如下”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: eclipse 创建maven项目时pomxml 报错如下
描述:

Failure to transfer org.codehaus.plexus:plexus-archiver:jar:1.2 from http://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 updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-archiver:jar:1.2 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000


解决方案1:

应该跟你贴的代码没关系。可能跟你没有贴出来的有关系。那里面写的以来的包在Maven仓库中找不到。检查一下是否写错了?最好是去Maven仓库里搜一下那个plexus,看看正确的依赖怎么写。

解决方案2:

 eclipse 创建maven项目时pomxml 报错如下
建议使用 
1.使用myeclipse 6.5 及以上版本 自带maven2 
2.手动创建 pom.xml 命令在doc里面敲 
pom.xml文件配置内容如下: 

 
[...] 
 
     
       
        org.apache.maven.plugins 
        maven-surefire-plugin 
         
          true 
        
 
      
 
    
 
 
[...] 

以上介绍了“ eclipse 创建maven项目时pomxml 报错如下”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/2868474.html

相关图片

相关文章