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

질문됨 일 년 전193회 조회
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
지원 엔지니어
답변함 일 년 전
0

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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠