jenkins automatically compile a Maven project _ remember once fail to compile 501error

Could not Transfer to Transfer Failed artifact org.springframework.cloud:spring-cloud-dependencies-parent:pom:2.1.3.RELEASE from / to Central ( http://repo.maven.apache.org/maven2 ): 
Failed to File Transfer: http://repo.maven.apache.org/maven2/org/springframework/cloud/spring-cloud-dependencies-parent/2.1.3.RELEASE/spring-cloud-dependencies-parent-2.1.3.RELEASE . Pom .
the Return code iS: 501, reasonPhrase:. HTTPS the required
compile-time error, show the central warehouse 501 is connected
through Baidu also learned that no longer supports the central warehouse http access, you need to change the path to https

 

 The path we need to modify the configuration file setting maven

First, find maven installation path environment variable configuration jenkins, general jenkins deployed on the server

Then maven installation path conf folder, there is a setting file, in which we find the mirror section

<mirror>

<id>central</id>

<name>Maven Repository Switchboard</name>

<url>https://repo1.maven.org/maven2/</url>

<mirrorOf>central</mirrorOf>

</ mirror>
these period added to the list, recompile to get

Note: when I find maven project, found on jenkins management system which, in fact, support for direct upload setting profiles

In the global configuration tools in jenkins, it can also provide a setting to re-file upload here

 

 

Guess you like

Origin www.cnblogs.com/muzipaopao/p/12653322.html