Maven镜像以及pom文件中出现maven-pluginERROR问题

  1. 解决jar包下载过慢
  • 通过在settings.xml里面配置镜像,推荐镜像如下:
  
  ibiblio  
  central  
  Human Readable Name for this Mirror.  
  http://mirrors.ibiblio.org/pub/mirrors/maven2/  



  alimaven
  aliyun maven
  http://maven.aliyun.com/nexus/content/groups/public/
  central        

 
  
    repo2  
    central  
    Human Readable Name for this Mirror.  
    http://repo2.maven.org/maven2/  
  

  
    ui  
    central  
    Human Readable Name for this Mirror.  
    http://uk.maven.org/maven2/  
  

  
    jboss-public-repository-group  
    central  
    JBoss Public Repository Group  
    http://repository.jboss.org/nexus/content/groups/public  

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

  • 删除下载失败的jar包,命令如下:
    cd %userprofile%\.m2\repository
    for /r %i in (*.lastUpdated) do del %i
  • 通过maven更新项目
    (原答案)stackoverflow

你可能感兴趣的:(Maven镜像以及pom文件中出现maven-pluginERROR问题)