Failed to transfer file: ... Return code is: 501 , ReasonPhrase:HTTPS Required.

現(xiàn)場(chǎng)

maven工程

解決【works for me】

修改 setting.xml,官方文檔

<mirror>
  <id>repo1</id>
  <mirrorOf>central</mirrorOf>
  <name>Human Readable Name for this Mirror.</name>
  <url>https://repo1.maven.org/maven2/</url>
</mirror>

<mirror>
  <id>repo2</id>
  <mirrorOf>central</mirrorOf>
  <name>Human Readable Name for this Mirror.</name>
  <url>https://repo2.maven.org/maven2/</url>
</mirror>

<mirror>
  <id>alimaven</id>
  <name>aliyun maven</name>
  <url>https://maven.aliyun.com/nexus/content/groups/public/</url>
  <mirrorOf>central</mirrorOf>
</mirror>

查閱

Effective January 15, 2020, The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS.

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • By clicking to agree to this Schedule 2, which is hereby ...
    qaz0622閱讀 1,639評(píng)論 0 2
  • 啊 http://www.itdecent.cn/writer#/notebooks/14946179/notes...
    指如出劍閱讀 596評(píng)論 0 0
  • Awesome Ruby Toolbox Awesome A collection of awesome Ruby...
    debbbbie閱讀 3,087評(píng)論 0 3
  • 為什么會(huì)生病 其實(shí) 七分是自已惹的禍 體質(zhì)太胖 易患高血壓、糖尿病、心臟病 喜歡酗酒 易患肝硬化、股骨頭壞死、腦溢...
    徐一村閱讀 486評(píng)論 6 7
  • 清晨從夢(mèng)中醒來,我蜷縮在被窩里,是的,這和當(dāng)年我一個(gè)人的感覺是一模一樣的,突然間我問了句自己,這些年到底發(fā)生了什么...
    為之所沁閱讀 327評(píng)論 0 0

友情鏈接更多精彩內(nèi)容