Maven release:prepare fails to find dependency despite dependency having been successfully retrieved during maven clean install #50513
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I have a project that builds successfully with maven but fails due to a missing dependency when mvn release is run within the same workflow, both processes use the same settings.xml.
Output from successful artifact retrieval during build:
Downloaded from github-dev: https://maven.pkg.github.com/ORG/any/REPO/3.0/ARTIFACT.pom
Release error output:
org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact ARTIFACT in central (https://repo.maven.apache.org/maven2)
Why is mvn release:prepare looking for this artifact in central?
Github actions workflow:
Beta Was this translation helpful? Give feedback.
All reactions