zoukankan      html  css  js  c++  java
  • maven 报错 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

    "C:Program FilesJavajdk1.8.0_171injava.exe" -Dmaven.multiModuleProjectDirectory=E:A_Developmarrymarry2.2marry -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true "-Dmaven.home=E:A_Development Kitapache-maven-3.6.3" "-Dclassworlds.conf=E:A_Development Kitapache-maven-3.6.3inm2.conf" "-Dmaven.ext.class.path=E:A_Development KitIntelliJ IDEA 2020.1.3pluginsmavenlibmaven-event-listener.jar" "-javaagent:E:A_Development KitIntelliJ IDEA 2020.1.3libidea_rt.jar=51683:E:A_Development KitIntelliJ IDEA 2020.1.3in" -Dfile.encoding=UTF-8 -classpath "E:A_Development Kitapache-maven-3.6.3ootplexus-classworlds-2.6.0.jar;E:A_Development Kitapache-maven-3.6.3ootplexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version2020.1.3 -s "E:A_Development Kitapache-maven-3.6.3confsettings.xml" -DskipTests=true clean
    [INFO] Scanning for projects...
    Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.6.RELEASE/spring-boot-starter-parent-2.1.6.RELEASE.pom
    [ERROR] [ERROR] Some problems were encountered while processing the POMs:
    [FATAL] Non-resolvable parent POM for com:marry:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.6.RELEASE/spring-boot-starter-parent-2.1.6.RELEASE.pom and 'parent.relativePath' points at wrong local POM @ line 5, column 10
     @ 
    [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]   
    [ERROR]   The project com:marry:0.0.1-SNAPSHOT (E:A_Developmarrymarry2.2marrypom.xml) has 1 error
    [ERROR]     Non-resolvable parent POM for com:marry:0.0.1-SNAPSHOT: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.6.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.6.RELEASE/spring-boot-starter-parent-2.1.6.RELEASE.pom and 'parent.relativePath' points at wrong local POM @ line 5, column 10: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed out: connect -> [Help 2]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
    [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
    

    1.首先在Maven的setting.xml里设置新版HTTPS的阿里云仓库

    <mirror>    
    <id>aliyunmaven</id>    
    <mirrorOf>*</mirrorOf>    
    <name>阿里云公共仓库</name>    
    <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
    

    2.然后在IDEA中设置,忽略HTTPS的SSL证书验证就好了,注意是在Maven-Importing-VM options for importer里添加

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

    然后clean就会进行正常下载了。(删除lastUpdated文件)

    参考一位真正负责的大佬:https://www.zhihu.com/question/350864269

  • 相关阅读:
    Updatepanel 中使用 Timer 控件 失去焦点问题
    获取周一还是周日作为首日
    存储过程
    ASP.NEt ajax 弹出窗口在页面无法关闭
    Gridview 每秒刷新数据
    SharePoint 2013 set site mailbox
    SharePoint 2010 将带有工作流的模板移动到另一个站点集
    Infoapth 使用拼写 并加载web part 在Infopath的页面上
    ECMA 上传文件到SHarePoint 文档库
    数据库如何高效率处理百万以上的查询
  • 原文地址:https://www.cnblogs.com/cchilei/p/13507278.html
Copyright © 2011-2022 走看看