Failing Maven build on Flex project http://repository.sonatype.org:80: No route to host

154 Views Asked by At

A Maven build on a Flex project recently stopped working even though there has been no changes to the code. The build fails with the following error:

Sep 08, 2016 12:00:21 AM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://repository.sonatype.org:80: No route to host

2

There are 2 best solutions below

0
Robert Hunt On

It seems that version 7.0.1 of the flexmojos-maven-plugin has a reference somewhere to repository.sonatype.org which has recently gone offline (September 7th 2016) and this causes the build to fail due to the unresolved dependency.

I have updated to version 7.1.0 of the plugin which seems to have resolved the issue as it no longer tried to use this location.

2
rseddon On

You need to use https://repository.sonatype.org now, the server is no longer available over plain http.