使用maven打包报错如下:

[ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.springframework.boot:spring-boot-maven-plugin:jar:1.5.4.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:1.5.4.RELEASE from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.196.215] failed: Connection timed out: connect -> [Help 1]
[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/PluginResolutionException

 

解决方法:

 打开自己的maven的setting配置文件

【maven】maven打包deploy时候报错:Connect to repo.maven.apache.org:443

 

搜索mirrors关键字,加入mirror镜像节点

【maven】maven打包deploy时候报错:Connect to repo.maven.apache.org:443

<mirror>
        <id>osc</id>
        <mirrorOf>*</mirrorOf>
        <url>http://maven.oschina.net/content/groups/public/</url>
    </mirror>
View Code

相关文章:

  • 2021-09-04
  • 2021-10-18
  • 2021-12-01
  • 2021-09-02
  • 2021-11-28
  • 2021-09-11
  • 2021-05-27
  • 2021-08-14
猜你喜欢
  • 2021-08-14
  • 2021-07-18
  • 2021-04-21
  • 2021-10-08
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案