Quantcast

Problem publishing plugin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Problem publishing plugin

rstepanenko
Hi, I have grails 2.0.0 and installed 2.0.0 version of the plugin, getting this error:

C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin --no-scm --stacktrace
| Packaging Grails application
> You currently already have a version of the plugin installed [release-2.0.0]. Do you want to update to [release-1.0.1]? [y,n] n
| Plugin packaged grails-dynamodb-0.1.1.zip
| Error Error executing script PublishPlugin: java.lang.ClassNotFoundException: grails.plugins.publish.DistributionManagementInfo (NOTE: Stack trace has been fi
ltered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException: grails.plugins.publish.DistributionManagementInfo
        at java_lang_ClassLoader$loadClass.call(Unknown Source)
        at _GrailsMaven_groovy$_run_closure4.doCall(_GrailsMaven_groovy:114)
        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 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 org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
        at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
        at PublishPlugin$_run_closure1.doCall(PublishPlugin:62)
        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 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 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 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.ClassNotFoundException: grails.plugins.publish.DistributionManagementInfo

Any help is appreciated.

Thank you.
Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem publishing plugin

Erik  Pragt
Hi Roman,

I've had a large amount of problems with the publish plugin (I still have actually). I also saw error like this, but sometimes it 'works' if you try it twice, as you can here:

Erik-Pragts-MacBook-Pro:grails-fitnesse erikp$ grails publish-plugin
| Compiling 10 source files

| Compiling 10 source files.
| Error Compilation error: startup failed:
/Users/erikp/UserFiles/Projects/Personal/grails-fitnesse/master/grails-fitnesse/target/plugins/release-2.0.0/src/groovy/grails/plugins/publish/portal/GrailsCentralDeployer.groovy: 4: unable to resolve class grails.plugins.rest.client.RestBuilder
 @ line 4, column 1.
   import grails.plugins.rest.client.RestBuilder
   ^

/Users/erikp/UserFiles/Projects/Personal/grails-fitnesse/master/grails-fitnesse/target/plugins/release-2.0.0/src/groovy/grails/plugins/publish/portal/GrailsCentralDeployer.groovy: 14: unable to resolve class grails.plugins.rest.client.RestBuilder 
 @ line 14, column 5.
       RestBuilder rest = new RestBuilder(connectTimeout: 1000, readTimeout:10000, proxy:null )
       ^

/Users/erikp/UserFiles/Projects/Personal/grails-fitnesse/master/grails-fitnesse/target/plugins/release-2.0.0/src/groovy/grails/plugins/publish/portal/GrailsCentralDeployer.groovy: 14: unable to resolve class grails.plugins.rest.client.RestBuilder 
 @ line 14, column 24.
       RestBuilder rest = new RestBuilder(connectTimeout: 1000, readTimeout:10000, proxy:null )
                          ^

3 errors
Erik-Pragts-MacBook-Pro:grails-fitnesse erikp$ grails publish-plugin
| Compiling 37 source files
Note: /Users/erikp/UserFiles/Projects/Personal/grails-fitnesse/master/grails-fitnesse/src/java/nl/jworks/grails/plugin/fitnesse/FitnesseFixtureArtefactHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
| Plugin packaged grails-fitnesse-2.0.1.zip
| Plugin packaged grails-fitnesse-2.0.1.zip
| POM generated: /Users/erikp/UserFiles/Projects/Personal/grails-fitnesse/master/grails-fitnesse/target/pom.xml
> Enter extra commit message text for this release (optional): 2.0.1 Release
> Project is not under source control. Do you want to import it now? (Y,n) n
Publishing to Grails Central
| Error Error executing script PublishPlugin: org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error (Use --stacktrace to see the full trace)

Maybe that will also help fo you?

Erik




On Apr 19, 2012, at 2:20 AM, rstepanenko wrote:

Hi, I have grails 2.0.0 and installed 2.0.0 version of the plugin, getting
this error:

C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin
--no-scm --stacktrace
| Packaging Grails application
You currently already have a version of the plugin installed
[release-2.0.0]. Do you want to update to [release-1.0.1]? [y,n] n
| Plugin packaged grails-dynamodb-0.1.1.zip
| Error Error executing script PublishPlugin:
java.lang.ClassNotFoundException:
grails.plugins.publish.DistributionManagementInfo (NOTE: Stack trace has
been fi
ltered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException:
grails.plugins.publish.DistributionManagementInfo
       at java_lang_ClassLoader$loadClass.call(Unknown Source)
       at _GrailsMaven_groovy$_run_closure4.doCall(_GrailsMaven_groovy:114)
       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
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
org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
       at
org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
       at
org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
       at PublishPlugin$_run_closure1.doCall(PublishPlugin:62)
       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
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 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 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.ClassNotFoundException:
grails.plugins.publish.DistributionManagementInfo

Any help is appreciated.

Thank you.
Roman.

-----
www.itistrivial.com
--
View this message in context: http://grails.1312388.n4.nabble.com/Problem-publishing-plugin-tp4569387p4569387.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



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem publishing plugin

pledbrook
In reply to this post by rstepanenko
> C:\Source\grails-data-mapping\grails-plugins\dynamodb>grails publish-plugin
> --no-scm --stacktrace
> | Packaging Grails application
>> You currently already have a version of the plugin installed
>> [release-2.0.0]. Do you want to update to [release-1.0.1]? [y,n] n

Does the command keep showing this whenever you run it? Sounds like
the project or a dependency still has Release 1.0.1 as a dependency.
This is quite possibly the source of the problem.

> grails.plugins.publish.DistributionManagementInfo (NOTE: Stack trace has
> been fi
> ltered. Use --verbose to see entire trace.)

This is odd because DistributionManagementInfo is in both 2.0.0 and
1.0.1. I think the best thing to start with is working out why the
command tries to install Release 1.0.1. Is it in
application.properties perhaps?

Peter

--
Peter Ledbrook
Grails Advocate
SpringSource - A Division of VMware

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem publishing plugin

rstepanenko
For some reason when I execute 'grails list-plugins' I see version 1.0.1, can that be related?

release             <1.0.1>          --  Release Plugin

Thank you.
Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem publishing plugin

Erik Pragt-3
Roman,

Can you post your BuildConfig.groovy? I had to add the grailsRepo
"http://grails.org/plugins" *before* the Grails Central, else it would
still download the 1.0.1 release. It might work for you?

Erik

On Thu, Apr 19, 2012 at 10:28 AM, rstepanenko <[hidden email]> wrote:

> For some reason when I execute 'grails list-plugins' I see version 1.0.1, can
> that be related?
>
> release             <1.0.1>          --  Release Plugin
>
> Thank you.
> Roman.
>
> -----
> www.itistrivial.com
> --
> View this message in context: http://grails.1312388.n4.nabble.com/Problem-publishing-plugin-tp4569387p4570221.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


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Problem publishing plugin

rstepanenko
Hi Erik,

Yes, my BuildConfig.groovy had at the very bottom dependency on 1.0.1 release plugin!

Thank you.
Roman.
www.brainleg.com - Structural Exception Search Engine for Java Developers
Loading...