|
Hi,
I am getting 401 when publishing plugin: C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin --no-scm --stacktrace | Compiling 11 source files | Plugin packaged grails-dynamodb-0.1.1.zip | Plugin packaged grails-dynamodb-0.1.1.zip | POM generated: C:\Source\grails-data-mapping\grails-plugins\dynamodb\target/pom.xml Publishing to Grails Central Publishing to http://grails.org/api/v1.0/publish/dynamodb/0.1.1 | Error Error executing script PublishPlugin: java.lang.RuntimeException: Server returned error deploying to Grails central repository: 401 (NOTE: Stack trace h as been filtered. Use --verbose to see entire trace.) java.lang.RuntimeException: Server returned error deploying to Grails central repository: 401 at grails.plugins.publish.portal.GrailsCentralDeployer.deployPlugin(GrailsCentralDeployer.groovy:41) at PublishPlugin$_run_closure1.doCall(PublishPlugin:346) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at java_util_concurrent_Callable$call.call(Unknown Source) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:591) at gant.Gant.executeTargets(Gant.groovy:590) | Error Error executing script PublishPlugin: java.lang.RuntimeException: Server returned error deploying to Grails central repository: 401 Is it some permissioning issue? My username is rstepanenko Thank you. Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
|
|
Hi Roman,
The 401 is a not so friendly message that your username/password combination is incorrect. You should check if these are correct. I'm not sure which username/password you should use (jira, portal, something else), but that's what the error means. Erik On Thu, Apr 19, 2012 at 3:36 PM, rstepanenko <[hidden email]> wrote: > Hi, > > I am getting 401 when publishing plugin: > > C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin > --no-scm --stacktrace > | Compiling 11 source files > > | Plugin packaged grails-dynamodb-0.1.1.zip > | Plugin packaged grails-dynamodb-0.1.1.zip > | POM generated: > C:\Source\grails-data-mapping\grails-plugins\dynamodb\target/pom.xml > Publishing to Grails Central > Publishing to http://grails.org/api/v1.0/publish/dynamodb/0.1.1 > | Error Error executing script PublishPlugin: java.lang.RuntimeException: > Server returned error deploying to Grails central repository: 401 (NOTE: > Stack trace h > as been filtered. Use --verbose to see entire trace.) > java.lang.RuntimeException: Server returned error deploying to Grails > central repository: 401 > at > grails.plugins.publish.portal.GrailsCentralDeployer.deployPlugin(GrailsCentralDeployer.groovy:41) > at PublishPlugin$_run_closure1.doCall(PublishPlugin:346) > at > org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) > at > org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at > org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) > at > org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at gant.Gant.withBuildListeners(Gant.groovy:427) > at gant.Gant.this$2$withBuildListeners(Gant.groovy) > at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) > at gant.Gant.dispatch(Gant.groovy:415) > at gant.Gant.this$2$dispatch(Gant.groovy) > at gant.Gant.invokeMethod(Gant.groovy) > at gant.Gant.executeTargets(Gant.groovy:591) > at gant.Gant.executeTargets(Gant.groovy:590) > | Error Error executing script PublishPlugin: java.lang.RuntimeException: > Server returned error deploying to Grails central repository: 401 > > Is it some permissioning issue? My username is rstepanenko > > Thank you. > Roman. > > > > ----- > www.brainleg.com - Structural Exception Search Engine for Java Developers > -- > View this message in context: http://grails.1312388.n4.nabble.com/401-when-deploying-to-Grails-central-repo-tp4570924p4570924.html > Sent from the Grails - dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
You should be using the username and password for http://grails.org/plugins/ if you are using that and are getting the error I think that means you don't have permission yet.
That user/pass pair worked correctly for me when I pushed my plugin. But I had requested access to the new repo before I pushed. Jeff
On Thu, Apr 19, 2012 at 8:49 AM, Erik Pragt <[hidden email]> wrote: Hi Roman, |
|
Administrator
|
In reply to this post by rstepanenko
I have granted you permission to publish the simpledb and dynamodb plugins
Please use your grails.org username/password not your Xircles one Cheers On Thu, Apr 19, 2012 at 3:36 PM, rstepanenko <[hidden email]> wrote: > Hi, > > I am getting 401 when publishing plugin: > > C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin > --no-scm --stacktrace > | Compiling 11 source files > > | Plugin packaged grails-dynamodb-0.1.1.zip > | Plugin packaged grails-dynamodb-0.1.1.zip > | POM generated: > C:\Source\grails-data-mapping\grails-plugins\dynamodb\target/pom.xml > Publishing to Grails Central > Publishing to http://grails.org/api/v1.0/publish/dynamodb/0.1.1 > | Error Error executing script PublishPlugin: java.lang.RuntimeException: > Server returned error deploying to Grails central repository: 401 (NOTE: > Stack trace h > as been filtered. Use --verbose to see entire trace.) > java.lang.RuntimeException: Server returned error deploying to Grails > central repository: 401 > at > grails.plugins.publish.portal.GrailsCentralDeployer.deployPlugin(GrailsCentralDeployer.groovy:41) > at PublishPlugin$_run_closure1.doCall(PublishPlugin:346) > at > org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) > at > org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at > org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90) > at > org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185) > at > org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) > at java_util_concurrent_Callable$call.call(Unknown Source) > at gant.Gant.withBuildListeners(Gant.groovy:427) > at gant.Gant.this$2$withBuildListeners(Gant.groovy) > at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) > at gant.Gant.dispatch(Gant.groovy:415) > at gant.Gant.this$2$dispatch(Gant.groovy) > at gant.Gant.invokeMethod(Gant.groovy) > at gant.Gant.executeTargets(Gant.groovy:591) > at gant.Gant.executeTargets(Gant.groovy:590) > | Error Error executing script PublishPlugin: java.lang.RuntimeException: > Server returned error deploying to Grails central repository: 401 > > Is it some permissioning issue? My username is rstepanenko > > Thank you. > Roman. > > > > ----- > www.brainleg.com - Structural Exception Search Engine for Java Developers > -- > View this message in context: http://grails.1312388.n4.nabble.com/401-when-deploying-to-Grails-central-repo-tp4570924p4570924.html > Sent from the Grails - dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
This post has NOT been accepted by the mailing list yet.
In reply to this post by Erik Pragt-3
Could someone please explain how you specify your username/password when running "grails release-plugin". This isn't covered by the relevant docs:
http://grails-plugins.github.com/grails-release/docs/ref/Command%20Line/publish-plugin.html |
|
Hi,
You have to create file %USER_HOME%\.grails\settings.groovy with your username and password of http://grails.org/plugins/ website. Hope it helps Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
|
|
These are the properties to use for your credentials in .grails\settings.groovy:
grails.project.repos.grailsCentral.username = "xxx" grails.project.repos.grailsCentral.password = "xxx" Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
|
| Powered by Nabble | Edit this page |
