- Newest
- Most votes
- Most comments
Workaround: Do not mark as accepted
From my own investigation I've found that the issue occurs when Maven uploads more than one checksum algorithm (by default it uses 2).
As a workaround you can set Maven to only use one: mvn deploy "-Daether.checksums.algorithms=MD5"
AWS have confirmed that this is a known bug and that they have an internal case for it. However, like many AWS service teams, the CodeArtifact team have no publicly visible roadmap. Instead, we should rely on their service team updating this re:Port issue when the bug is fixed.
This has been working for me as well. I'll look forward to the proper solution from AWS, but wanted to acknowledge this is working in the meantime.
This worked for me , however, this need to be fixed by CodeArtifact
sorry for long-time no update. Although have this issue in place but the artifact was uploaded to repository very well, that's the reason why I am not always putting an eye on this issue
This does not appear to be the normal behavior. In order to help troubleshoot this, the full log output, and some details about your environment would be needed.
Since these details are non-public information, please open a support case with AWS using this link, so that one of our support engineers can assist you directly.
It looks like same problem appear in stackoverflow which means this happens often when we deploy our own jar to code artifact while missing maven-metadata.xml
We are also evaluating codeartifact for maven projects and we have exactly the same error.
It would be good to get some answer here what the solution is.
I've replicated this behaviour on two of my own projects. Then, to ensure that it wasn't anything specific to those projects, I created a brand new Maven project (Intelli -> new Project) and applied the <distributionManagement> from the [View connection instructions] section in AWS CodeBuild.
When I run
mvn clean deploy
it produces the same stacktrace as described in the description. I have opened a support ticket on my AWS Support account. If I get a good answer, I'll post it here.Any updates on this issue?. Facing the problem with CodeArtifact. Seems to be related to the maven version. Getting this error with maven 3.8.5, but not with maven 3.3.9.
Relevant content
- asked a month ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I've confirmed with AWS Support that this is a known issue. They have an internal case for it, but no ETA as yet. From my own investigation I've found that the issue occurs when Maven uploads more than one checksum algorithm (by default it uses 2) [1].
As a workaround you can set Maven to only use one:
mvn deploy "-Daether.checksums.algorithms=MD5"
[1] https://maven.apache.org/resolver/configuration.html
Thanks for the update and workaround. I'm also experiencing this issue and interested in any updates you get. I'm adding this configuration to my
MAVEN_OPTS
and will report back if it works for me or not.This is a bug i have it too