分享

Maven install PluginResolutionException

 _bolo 2017-02-16
       
       Maven项目打包local已有repo-jar时,不需要配置私服再从私服去下载;否则,会很慢,超时异常。 

配置了私服,我真真浪费掉6h来打包关联的jar至lib,还失败了/(ㄒoㄒ)/~~。

Maven的pom.xml私服配置:

 
控制台报错:


PluginResolutionException( Failed-to-execute-goal-org-apache-maven-pluginsmaven-surefire-plugin2-19test)

 Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies could not be resolved: 
 Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.4.3: Could not transfer 
  artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (http://repo1./maven2): 
  Error transferring file: repo1.: Unknown host repo1. -> [Help 1]
 To see the full stack trace of the errors, re-run Maven with the -e switch.
 Re-run Maven using the -X switch to enable full debug logging.
 For more information about the errors and possible solutions, please read the following articles:
 "**[Help 1] http://cw
iki./confluence/display/MAVEN/PluginResolutionException"**

解决方案:

     将私服注释掉重新maven install,打包就成功。
 
 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多