Grails Maven Plugin

Make plugin work with Grails 1.1.1

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

ATM, the plugin doesn't work with Grails 1.1.1 projects. You'll get various strange exceptions if you try.

Activity

Hide
Aaron Digulla added a comment -

Here is an example output:

[code]
[INFO] Nothing to compile - all classes are up to date
[INFO] [grails:maven-compile {execution: default}]
Running pre-compiled script
Environment set to development
Plugin [hibernate-1.1.1] not installed, resolving..
Reading remote plugin list ...
Plugin list file corrupt, retrieving again..
[delete] Deleting: C:\...\.grails\1.1.1\plugins-list-core.xml
[get] Getting: http://svn.codehaus.org/grails/trunk/grails-plugins/.plugin-meta/plugins-list.xml
[get] To: C:\...\.grails\1.1.1\plugins-list-core.xml
.
[get] last modified = Thu May 14 10:44:43 CEST 2009
Error reading remote plugin list [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl], building locally...
Plugins list cache is corrupt [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]. Re-creating..
Unable to list plugins, please check you have a valid internet connection: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to start Grails

Embedded error: java.lang.reflect.InvocationTargetException
Cannot get property 'plugin' on null object
[code]

"Plugin [hibernate-1.1.1] not installed, resolving.." is wrong, grails already installed the plugin. Also, the list of plugins is not corrupt.

Show
Aaron Digulla added a comment - Here is an example output: [code] [INFO] Nothing to compile - all classes are up to date [INFO] [grails:maven-compile {execution: default}] Running pre-compiled script Environment set to development Plugin [hibernate-1.1.1] not installed, resolving.. Reading remote plugin list ... Plugin list file corrupt, retrieving again.. [delete] Deleting: C:\...\.grails\1.1.1\plugins-list-core.xml [get] Getting: http://svn.codehaus.org/grails/trunk/grails-plugins/.plugin-meta/plugins-list.xml [get] To: C:\...\.grails\1.1.1\plugins-list-core.xml . [get] last modified = Thu May 14 10:44:43 CEST 2009 Error reading remote plugin list [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl], building locally... Plugins list cache is corrupt [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]. Re-creating.. Unable to list plugins, please check you have a valid internet connection: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Unable to start Grails Embedded error: java.lang.reflect.InvocationTargetException Cannot get property 'plugin' on null object [code] "Plugin [hibernate-1.1.1] not installed, resolving.." is wrong, grails already installed the plugin. Also, the list of plugins is not corrupt.
Hide
Peter Ledbrook added a comment -

Try with version 1.1-SNAPSHOT of the plugin. You will also need to add the following dependency to your POM for now:

<dependency>
  <groupId>org.tmatesoft.svnkit</groupId>
  <artifactId>svnkit</artifactId>
  <version>1.2.3.5521</version>
  <scope>runtime</scope>
</dependency>
Show
Peter Ledbrook added a comment - Try with version 1.1-SNAPSHOT of the plugin. You will also need to add the following dependency to your POM for now:
<dependency>
  <groupId>org.tmatesoft.svnkit</groupId>
  <artifactId>svnkit</artifactId>
  <version>1.2.3.5521</version>
  <scope>runtime</scope>
</dependency>
Hide
Steve Dodge added a comment -

Were is the source code for 1.1-SNAPSHOT ?

This is still at 1.0-SNAPSHOT:
http://svn.grails.codehaus.org/browse/grails/trunk/grails-maven-plugin/pom.xml?r=8729

Thanks

Show
Steve Dodge added a comment - Were is the source code for 1.1-SNAPSHOT ? This is still at 1.0-SNAPSHOT: http://svn.grails.codehaus.org/browse/grails/trunk/grails-maven-plugin/pom.xml?r=8729 Thanks
Hide
Graeme Rocher added a comment -

In github

Show
Graeme Rocher added a comment - In github
Hide
James Cook added a comment -

Is the 1.1-SNAPSHOT available in a repository somewhere?

Show
James Cook added a comment - Is the 1.1-SNAPSHOT available in a repository somewhere?
Hide
Peter Ledbrook added a comment -

You need to hook up the Codehaus Snapshots repository:

<repository>
  <id>Codehaus Snapshots</id>
  <url>http://snapshots.repository.codehaus.org</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
  <releases>
    <enabled>false</enabled>
  </releases>
</repository>
Show
Peter Ledbrook added a comment - You need to hook up the Codehaus Snapshots repository:
<repository>
  <id>Codehaus Snapshots</id>
  <url>http://snapshots.repository.codehaus.org</url>
  <snapshots>
    <enabled>true</enabled>
  </snapshots>
  <releases>
    <enabled>false</enabled>
  </releases>
</repository>
Hide
Xavier Lemaignen added a comment -

Do you have any idea of when a release version of the plugin will be available?
This would allow the use of the release plugin on grails 1.1.1 projects...

Show
Xavier Lemaignen added a comment - Do you have any idea of when a release version of the plugin will be available? This would allow the use of the release plugin on grails 1.1.1 projects...
Hide
Graeme Rocher added a comment -

This is now done. Version 1.1 of the plugin works with Grails 1.1.1

Show
Graeme Rocher added a comment - This is now done. Version 1.1 of the plugin works with Grails 1.1.1

People

Vote (7)
Watch (8)

Dates

  • Created:
    Updated:
    Resolved: