Maven Central giving errors to Travis CI build


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 ( Access denied to: , 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:



Another build with a similar error:


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.


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