Maven Central giving errors to Travis CI build


#1

We have Travis set up with a Maven-based Java project. Until a couple of days ago, the Maven configuration worked as expected. But now the Maven build consistently errors out, with the following error message:

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Access denied to: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom , ReasonPhrase:Forbidden.

Nothing changed on our end regarding the Maven or Travis configurations, and the project builds and runs fine locally.

Here is the full job with more details:

https://travis-ci.org/googlei18n/myanmar-tools/jobs/422348405

Suggestions?


#2

Another build with a similar error:

https://travis-ci.org/unicode-org/icu/jobs/422340628


#3

Just want to know how did you solve this problem, I get the same problem as your.
Thanks so much if you can share your solution.


#4

Hello, just now I switched from java7 to java8 in .travis.yml file, then all the maven plugins download successful.
The root cause is for central repository only support TLS1.2, and java8 support it by default.
That’s my solution, it’s good for my problem