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

已提問 1 年前檢視次數 194 次
2 個答案
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
支援工程師
已回答 1 年前
0

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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南