Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn-sync: Build after redeploying a fixed version of a previously broken artifact fails due to maven caching #1

Open
Aklakan opened this issue Jan 26, 2024 · 0 comments

Comments

@Aklakan
Copy link
Member

Aklakan commented Jan 26, 2024

Running mvn deploy to upload an artifact e.g. with an incorrect pom* causes the server-side mvn-sync build process to fail with the message that the pom could not be resolved.
After deploying an artifact with a correct pom later still causes the server-side build to fail because the error has been cached in its maven repository.
Running maven mvn -U deploy on the server for the conflicting artifact fixes the problem, but as this downloads all snapshot dependencies, it is thus is far from ideal to run -U on every dataset upload.

Maybe mvn dependency:purge-local-repository or similar can be used to clear a broken dataset artifact.

*Using the Archiva "Upload Artifact" form even allows uploading artifacts without a pom.xml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant