美文网首页
Maven镜像以及pom文件中出现maven-pluginER

Maven镜像以及pom文件中出现maven-pluginER

作者: neesonD | 来源:发表于2017-01-06 21:11 被阅读0次
  1. 解决jar包下载过慢
  • 通过在settings.xml里面配置镜像,推荐镜像如下:
<mirror>  
  <id>ibiblio</id>  
  <mirrorOf>central</mirrorOf>  
  <name>Human Readable Name for this Mirror.</name>  
  <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>  
</mirror>
<!--一般使用阿里的镜像-->
<mirror>
  <id>alimaven</id>
  <name>aliyun maven</name>
  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>        
</mirror>
 
<mirror>  
    <id>repo2</id>  
    <mirrorOf>central</mirrorOf>  
    <name>Human Readable Name for this Mirror.</name>  
    <url>http://repo2.maven.org/maven2/</url>  
</mirror>  

<mirror>  
    <id>ui</id>  
    <mirrorOf>central</mirrorOf>  
    <name>Human Readable Name for this Mirror.</name>  
    <url>http://uk.maven.org/maven2/</url>  
</mirror>  

<mirror>  
    <id>jboss-public-repository-group</id>  
    <mirrorOf>central</mirrorOf>  
    <name>JBoss Public Repository Group</name>  
    <url>http://repository.jboss.org/nexus/content/groups/public</url>  
</mirror>

2.解决pom文件中出现maven-plugin-error相关问题

  • 删除下载失败的jar包,命令如下:
    cd %userprofile%\.m2\repository
    for /r %i in (*.lastUpdated) do del %i

相关文章

网友评论

      本文标题: Maven镜像以及pom文件中出现maven-pluginER

      本文链接:https://www.haomeiwen.com/subject/vvyxbttx.html