zoukankan      html  css  js  c++  java
  • Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from 这类问题的解决方法

        最近换了台电脑,所以重新在IEDA上搭建Spring Boot环境,遇到一个问题,网上查了很久,又实践了一通,终于解决,这里把步骤详细记录下来。    

        问题描述:创建IDEA的Maven项目后,出现 Maven插件无法下载的问题。

        

        首先自然去网上查,有人说是在IDEA->setting里去找Maven,如下Maven home路径和之下的User settings file路径不一致,我这边也一致的。

        又有人说,可能是setting.xml里,从配置的源里,下载不到插件,所以我也修改成了ali源,在setting.xml里加入如下的代码

      <mirror>
         <mirror>
               <id>alimaven</id>
             <mirrorOf>*</mirrorOf>
             <url>https://maven.aliyun.com/repository/central</url>
         </mirror>
      </mirrors>
    

      结果还不行,后来终于看到一篇文章,说是下载时,证书不对,所以下不了。

        于是,我还是到IEDA->setting里,去找 Maven,在importing里加入如下的话,一试,问题解决了。看来还是证书的问题。

        -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

        

        大家在IDEA里下载maven插件如果遇到如下的问题,可以参考本文,本人亲测有效

        Cannot resolve plugin org.apache.maven.plugins:maven-deploy-plugin:2.7

        Cannot resolve plugin org.apache.maven.plugins:maven-site-plugin:3.3

  • 相关阅读:
    Some notes in Stanford CS106A(4)
    Some notes in Stanford CS106A(3)
    Some notes in Stanford CS106A(2)
    Some notes in Stanford CS106A(1)
    将前台页面的数据传到后台的方法(不调用ajax,少量数据)
    12、(扩展)获取省份表,填充于下拉列表框的简易js
    iframe刷新问题
    MVC基础
    DataList
    序列化
  • 原文地址:https://www.cnblogs.com/JavaArchitect/p/14383061.html
Copyright © 2011-2022 走看看