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

multiple artifacts with the identical extension and classifier #76

Closed
shadycuz opened this issue Mar 12, 2021 · 2 comments
Closed

multiple artifacts with the identical extension and classifier #76

shadycuz opened this issue Mar 12, 2021 · 2 comments
Labels
question Further information is requested

Comments

@shadycuz
Copy link

shadycuz commented Mar 12, 2021

  • What went wrong:

Execution failed for task ':publishMavenJavaPublicationToSonatypeRepository'.

Failed to publish publication 'mavenJava' to repository 'sonatype'
Invalid publication 'mavenJava': multiple artifacts with the identical extension and classifier ('jar', 'javadoc').

I used to use the other two plugins and my uploads looked like this:

image

Now that I have switched too the new plugin it errors. I'm new to java/gradle so I don't really know whats going on. I managed to make my gradle not create the sources.jar and now it seems to work.

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :compileJava NO-SOURCE
> Task :compileGroovy
> Task :processResources NO-SOURCE
> Task :classes
> Task :jar
> Task :generateMetadataFileForMavenJavaPublication
> Task :generatePomFileForMavenJavaPublication

> Task :groovydoc
Trying to override old definition of task fileScanner

> Task :groovydocJar
> Task :initializeSonatypeStagingRepository SKIPPED
> Task :signMavenJavaPublication
> Task :publishMavenJavaPublicationToSonatypeRepository
> Task :publishToSonatype
> Task :closeSonatypeStagingRepository SKIPPED

BUILD SUCCESSFUL in 26s
8 actionable tasks: 8 executed

I don't know what a sources jar is or why it might be needed or not needed. Just thought I would let you know about the change in behavior.

Thanks for these nexus plugins. It was the only part of the java ecosystem I found user-friendly.

edit:

I'm not sure what it means by StagingRepository SKIPPED. Do I have to do something different for snapshots? After running I logged into nexus to "close" and I couldn't find anything. So I searched for my project and found it.

image

but I only see the javadocs not the actual code?

@shadycuz
Copy link
Author

So I tried later with a non snapshot and I can see the package in the staging area but it fails with Missing: no sources jar found in folder '/io/github/dontshavetheyak/jenkins-std-lib/0.2.10'

hmm

@shadycuz
Copy link
Author

Defintly something I was doing. Finally got it figured out. Will need to brush up on snapshots but everything is setup and fully automated with github actions now. 🎉

@szpak szpak added the question Further information is requested label Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants