ERROR] Plugin org.springframework.boot:spring-boot-maven-plugin:1.4.2.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.4.2.RELEASE: Could not transfer artifact org.springframework.boot:spring-boot-maven-plugin:pom:1.4.2.RELEASE from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-maven-plugin/1.4.2.RELEASE/spring-boot-maven-plugin-1.4.2.RELEASE.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
[ERROR]
[JENKINS] Archiving /var/lib/jenkins/workspace/test01/pom.xml to org.springframework.boot/spring-boot-web-jsp/1.0/spring-boot-web-jsp-1.0.pom
[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
channel stopped
~
更新maven源
b). 配置全局生效,修改 settings.xml 文件
可以在以下路径查找到 settings.xml 文件
(用户家目录)/.m2/settings.xml
(maven安装目录)/conf/settings.xml,
如果是 Mac 系统通过 brew 命令安装的,在这里:
/usr/local/Cellar/maven/(版本号)/libexec/conf/settings.xml
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>