Closed camerondavison closed 9 years ago
@bivas - Any chance there can be a push to maven any time soon? I'd like to use the latest JsonJackonFormatter and it's not available on the latest 1.2 version
I guess, I'd like to see 1.3 released, most importantly, but, short of that, is the 1.3-SNAPSHOT available from any repo?
I haven't released anything for real long time. If you like, you're welcome to add yourself to the commiters sections and release a new version.
Eliran Bivas On Oct 14, 2015 9:14 PM, "Sheridan C Rawlins" notifications@github.com wrote:
I guess, I'd like to see 1.3 released, most importantly, but, short of that, is the 1.3-SNAPSHOT available from any repo?
— Reply to this email directly or view it on GitHub https://github.com/bivas/protobuf-java-format/issues/1#issuecomment-148142157 .
Thanks - is there a write up of your deployment mechanism? I personally deploy to sonatype using their plugin for https://github.com/scr/j8iterables - I'll try the usual directives and see where I get stuck.
@bivas - I'm not sure I understand what you meant when you said "add yourself to the commiters sections" - Does https://github.com/bivas/protobuf-java-format/pull/8 solve it (By adding to the developers in the pom.xml?).
Here's what I see when I run
mvn clean deploy -DsignArtifacts=true
:
nexus-staging-maven-plugin
for deployment: https://gist.github.com/scr/a0a73013759bc38808d8maven-deploy-plugin
for deployment: https://gist.github.com/scr/fbb2b23a1d74be4447e9@scr yes, issue #8 solve it
Hmm… @bivas - I'm wondering - did the <id>...</id>
need to be my sonatype id? I just followed the convention you had of firstname.lastname, thinking it was just a maven-specific ID of sorts.
Please merge PR #9 to see if that helps.
@scr I've merged it. Do you need my access token for Sonatype release? Can you post here the errors you're getting when you attempt a release?
@bivas
Hmm… did the version get bumped to 1.4-SNAPSHOT
? I don't think we've released 1.3
yet.
This is trying to do mvn clean deploy
of 1.4-SNAPSHOT
:
[INFO] Deploying remotely...
[INFO] Bulk deploying locally gathered artifacts from directory:
[INFO] * Bulk deploying locally gathered snapshot artifacts to URL https://oss.sonatype.org/content/repositories/snapshots
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/protobuf-java-format/protobuf-java-format/1.4-SNAPSHOT/maven-metadata.xml
Uploading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/protobuf-java-format/protobuf-java-format/1.4-SNAPSHOT/protobuf-java-format-1.4-20151018.185229-1.jar
Uploading: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/protobuf-java-format/protobuf-java-format/1.4-SNAPSHOT/protobuf-java-format-1.4-20151018.185229-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.673 s
[INFO] Finished at: 2015-10-18T11:52:31-07:00
[INFO] Final Memory: 35M/145M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.5:deploy (injected-nexus-deploy) on project protobuf-java-format: Failed to deploy artifacts: Could not transfer artifact com.googlecode.protobuf-java-format:protobuf-java-format:jar:1.4-20151018.185229-1 from/to ossrh (https://oss.sonatype.org/content/repositories/snapshots): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/com/googlecode/protobuf-java-format/protobuf-java-format/1.4-SNAPSHOT/protobuf-java-format-1.4-20151018.185229-1.jar, ReasonPhrase: Forbidden. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
And this is the log from setting the pom.xml
to version 1.3
:
[INFO] --- nexus-staging-maven-plugin:1.6.5:deploy (injected-nexus-deploy) @ protobuf-java-format ---
[INFO] Performing local staging (local stagingDirectory="/Users/scr/dev/github/scr/protobuf-java-format/target/nexus-staging/staging")...
[INFO] + Using server credentials "ossrh" from Maven settings.
[INFO] * Connected to Nexus at https://oss.sonatype.org:443/, is version 2.11.4-01 and edition "Professional"
[INFO] * Using staging profile ID "3477582f035c82" (matched by Nexus).
[INFO] Installing /Users/scr/dev/github/scr/protobuf-java-format/target/protobuf-java-format-1.3.jar to /Users/scr/dev/github/scr/protobuf-java-format/target/nexus-staging/staging/3477582f035c82/com/googlecode/protobuf-java-format/protobuf-java-format/1.3/protobuf-java-format-1.3.jar
[INFO] Installing /Users/scr/dev/github/scr/protobuf-java-format/pom.xml to /Users/scr/dev/github/scr/protobuf-java-format/target/nexus-staging/staging/3477582f035c82/com/googlecode/protobuf-java-format/protobuf-java-format/1.3/protobuf-java-format-1.3.pom
[INFO] Installing /Users/scr/dev/github/scr/protobuf-java-format/target/protobuf-java-format-1.3-sources.jar to /Users/scr/dev/github/scr/protobuf-java-format/target/nexus-staging/staging/3477582f035c82/com/googlecode/protobuf-java-format/protobuf-java-format/1.3/protobuf-java-format-1.3-sources.jar
[INFO] Installing /Users/scr/dev/github/scr/protobuf-java-format/target/protobuf-java-format-1.3-javadoc.jar to /Users/scr/dev/github/scr/protobuf-java-format/target/nexus-staging/staging/3477582f035c82/com/googlecode/protobuf-java-format/protobuf-java-format/1.3/protobuf-java-format-1.3-javadoc.jar
[INFO] Performing remote staging...
[INFO]
[INFO] * Remote staging into staging profile ID "3477582f035c82"
[ERROR] Remote staging finished with a failure: 403 - Forbidden
[ERROR]
[ERROR] Possible causes of 403 Forbidden:
[ERROR] * you have no permissions to stage against profile with ID "3477582f035c82"? Get to Nexus admin...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.300 s
[INFO] Finished at: 2015-10-18T11:55:50-07:00
[INFO] Final Memory: 36M/146M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.5:deploy (injected-nexus-deploy) on project protobuf-java-format: Remote staging failed: 403 - Forbidden -> [Help 1]
FYI, I tried with -DsignArtifacts but the results didn't change.
You don't have access to that repo as I'm the owner. Have you set anything in settings.xml?
@bivas - I filed https://issues.sonatype.org/browse/OSSRH-18347 to ask Sonatype to help us with extending permissions to deploy.
@scr Got my approval (and blessing).
@scr SonaType added your id to publishers. Lets give it another run.
It looks like 1.3 went through!!! Please pull #10 and do:
git tag 1.3 23b27d51be2564b517a311fa5fe4a6652497cb7e
git push --tags
Done
Start publishing the project to maven central repo.