We want to publish the BIRT runtime on Maven Central.
Steps to reproduce
It is necessary to have an OSSRH account tied to the root group ID (org.eclipse) in order to publish to Maven Central. The wiki article referenced below says:
"Deploying artifacts to OSSRH (OSS Repository Hosting provided by Sonatype) requires an account at OSSRH. It is also required to sign all artifacts with GPG. The Eclipse IT team will set this up for the project."
I am hereby asking the Eclipse IT Team to set this up for us. I'm not sure exactly what this will involve since I've never done this before so please be clear about what I need to do.
There were a number of unrelated issues we had to solve but now the project is building on ci.eclipse.org without error. However it's been 24 hours but I haven't seen org.eclipse.birt appear on s01.oss.sonatype.org in staging, snapshots, or releases. Am I looking for the right thing? The sonatype docs say to log in to ossrh but I can't because I don't know the credentials. How can I debug this process?
According to the JIRA ticket at OSSRH, permissions are set up for oss.sonatype.org not s01.oss.sonatype.org. I've tried to login to the Nexus UI on both sites and the BIRT credentials only work on oss.sonatype.org.
Apart from that, I did not find any reference to the nexus-staging-maven-plugin in the console (https://ci.eclipse.org/birt/job/birt_4.9.0_maven/14/console) log which indicates that artifacts were uploaded or that there was an attempt (that should have failed) at least.
I had specified s01.oss.sonatype.org in the nexus-staging-maven-plugin and distributionManagement. I change it to oss.sonatype.org and try it again. I'll keep the ticket open for now.
After building with oss.sonatype.org in nexus-staging-maven-plugin and distributionManagement I find nexus-staging-maven-plugin on only one line:
[INFO] ... total of 287 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
oss.sonatype.org is only in my commit message.
With debug output turned on, both can be found in lots of debug lines. Build #15 has debug output and #16 does not. I still don't see org.eclipse.birt in oss.sonatype.org staging, snapshots, or runtime. org.eclipse.birt.runtime exists but it's an older version and has been there a long time. It's been an hour and 50 minutes since build 15.
Thanks. I see that someone changed the phase to "deploy" this morning and now I see everything in snapshots. Now I need to get it into releases and into maven central. The sonatype doc describes logging into ossrh to accomplish this, which I can't do.
Update: I found the place where it says to remove "-SNAPSHOT" from the version number. I'll do that.
I don't believe I can use option a because the OSSRH account is the one that corresponds to the org.eclipse groupId which is why this ticket was created. You added the credentials to settings.xml on the ci.eclipse.org server but I don't have access to them as far as I know.
My understanding is the "deploy" goal should work if autoReleaseAfterClose is set to true.
I don't believe I can use option a because the OSSRH account is the one that corresponds to the org.eclipse groupId which is why this ticket was created. You added the credentials to settings.xml on the ci.eclipse.org server but I don't have access to them as far as I know.
Multiple users can get permissions to a groupID. That's how other projects are handling it.
My understanding is the "deploy" goal should work if autoReleaseAfterClose is set to true.
After an initial manual "release", that's how it works. You can either do that first release manually with option a), let us handle it or comment on the Jira ticket and let SonaType staff handle it.
Do I still need to create a new ticket at sonatype to start the publishing process? When I access the Nexus UI I still don't see anything in the staging area, although everything did get published to snapshots.
I was able to get the build to work with a combination of tycho-versions-plugin and a shell script to get rid of "-SNAPSHOT". Now the build is failing because of staging rules failure, but it doesn't tell me what the failure is:
Waiting for operation to complete................................[INFO] Remote staged 1 repositories, finished with success.[INFO] Remote staging repositories are being released...Waiting for operation to complete......................................................................................................[WARNING] TIMEOUT after 300.5 s[ERROR] [ERROR] Nexus Staging Rules Failure Report[ERROR] ==================================[ERROR] [ERROR]
It might not like my developers section:
<developers> <developer> <name>Contributors to BIRT</name> <email>various</email> <organization>various</organization> <organizationUrl>various</organizationUrl> </developer> </developers>
How can I find out why it's failing?
Update: maybe this is because of the timeout. I'll retry. It might be more appropriate for me to post something on sonatype if it continues.
A timeout sounds like a legit reason for an error.
As for the errors in #31, please be aware that Maven artifacts can only be released once. You can't overwrite a released version. Only -SNAPSHOT versions can be overwritten.