AWS Codebuild fails at the command mvn -X install since Friday

0

Since Friday, my code build project for java fails at the mvn -X install step. It started failing at mvn -q install, then I switched to mvn -X install to have more details on the problem, and it seemed to start working again, but today it fails. It stops downloading at some library located on a server in Chine ??? I don't know if this is an issue at Maven, and some links to some POMS have been alter and also its not https. See logs below.

The project has been working for many years using CodeBuild, and no code change was made since the failure. Even re-running old builds that succeeded with the same CommitId from the CodeCommit repository are now failing.

Please advise. I have reverted to building on my local machine!

Simon

Downloaded from central: https://repo.maven.apache.org/maven2/org/jboss/arquillian/arquillian-bom/1.6.0.Final/arquillian-bom-1.6.0.Final.pom (9.2 kB at 131 kB/s) 1550 [DEBUG] Writing tracking file /root/.m2/repository/org/jboss/arquillian/arquillian-bom/1.6.0.Final/_remote.repositories 1551 [DEBUG] Writing tracking file /root/.m2/repository/org/jboss/arquillian/arquillian-bom/1.6.0.Final/arquillian-bom-1.6.0.Final.pom.lastUpdated 1552 [DEBUG] Using transporter WagonTransporter with priority -1.0 for http://maven.aliyun.com/nexus/content/repositories/public 1553 [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for http://maven.aliyun.com/nexus/content/repositories/public 1554 Downloading from aliyun: http://maven.aliyun.com/nexus/content/repositories/public/org/jboss/shrinkwrap/shrinkwrap-bom/1.2.6/shrinkwrap-bom-1.2.6.pom

asked a year ago188 views
2 Answers
0

Hello there,

As you mentioned that you were able to download with mvn -q install but it failed again today and it seems to you that it stops downloading at some library located on a server in Chine. Here I would suggest you to try with SSM in code build if you are using code build provided images. You can pause a running build and then use AWS Systems Manager Session Manager to connect to the build container and view the state of the container. For more details please have a look here

Once you will be inside the code build container you can run same command even try to debug on HTTPS or any other issue as well. Lastly, if you need further help I would like to suggest you to reach us with a Support case as well .

AWS
SUPPORT ENGINEER
answered a year ago
0

Thanks a lot! I'll look into that, but now Maven Central has resolved their issues, and the builds are working again.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions