Need help with release plugin: problem pushing to git

9 views
Skip to first unread message

Russell Gold

unread,
Jan 4, 2017, 12:53:29 PM1/4/17
to mojoha...@googlegroups.com
Hi,

I am attempting to prepare a release of the idlj-maven-plugin, the first time from GitHub, and am running into a problem. I have been able to push changes to GitHub manually, but cannot when using the release plugin. This is how it is attempting the push:

[INFO] Executing: /bin/sh -c cd /Users/russgold/projects/mojohaus/idlj-maven-plugin && git push ssh:********@github.com/mojohaus/idlj-maven-plugin.git refs/tags/idlj-maven-plugin-1.2.2
[INFO] Working directory: /Users/russgold/projects/mojohaus/idlj-maven-plugin
Enter passphrase for key '/Users/russgold/.ssh/github_rsa': 

I have released code via GitHub in the past and not been prompted for this passphrase, and it is rejecting every passphrase I type. My GitHub Desktop client is working fine. What is intended in the asterisks? I have tried changing my scm/developerConnection tag to use https instead of ssh, but that doesn’t seem to have an effect. I assume I am simply overlooking something very basic, here.

Thanks,
Russ 

Russell Gold

unread,
Jan 4, 2017, 3:05:53 PM1/4/17
to mojoha...@googlegroups.com
OK, I dug around and found that Mojohaus does require re-authorization of my keys, which I have done. 

I am now stuck trying to do release:perform. I have updated my ~/.m2/settings.xml with the appropriate server passwords, but I seem to require some permission to push the artifacts…?

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project idlj-maven-plugin: Failed to deploy artifacts: Could not transfer artifact org.codehaus.mojo:idlj-maven-plugin:jar:1.2.2 from/to ossrh-staging (http://oss.sonatype.org/service/local/staging/deploy/maven2): Access denied to: https://oss.sonatype.org/service/local/staging/deploy/maven2/org/codehaus/mojo/idlj-maven-plugin/1.2.2/idlj-maven-plugin-1.2.2.jar, ReasonPhrase: Forbidden. -> [Help 1]

I’ll keep hunting around, but I don’t see this explained in the documentation.

Thanks,
Russ
Reply all
Reply to author
Forward
0 new messages