We made a number of releases to our nexus repository without source jars attached. I would like to backfill the source jars for these releases.
What I tried to do was
This failed with a 400 error code because the pom and artifact jar were already in the repository.
Is there any way to upload just the source jar?
you should be able to do this using maven deploy-file (this has the added benefit of generating the various file sums as well), details here (you would be using, among other things, "packaging=jar" and "classifier=source").
I think the simplest thing would be to just upload sources jar using 'curl'. You will not even need to make any changes for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With