【maven】maven打包deploy時候報錯:Connect to repo.maven.apache.org:443

使用maven打包報錯以下:spring

[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

 

解決方法:apache

 打開本身的maven的setting配置文件maven

 

搜索mirrors關鍵字,加入mirror鏡像節點ide

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

 

 

更新maven依賴spring-boot

 

而後 從新編譯url

 

便可成功!!spa

 

若是依舊沒有成功,把剛剛添加的上面的  刪除掉,從新更新maven依賴,而後從新打包,我這裏就成功打包了!!.net

相關文章
相關標籤/搜索