Proper use of grails:exec

Whilst trying to run mvn grails:exec with more complicated requests it kept erroring:

<br /> Chill:superted idimmu$ mvn grails:exec -Dcommand="jack-be-nimble net.idimmu User Profile"<br /> [INFO] Scanning for projects...<br /> [INFO] Searching repository for plugin with prefix: 'grails'.<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building Unnamed - net.idimmu:gymlife:war:1.0-SNAPSHOT<br /> [INFO] task-segment: [grails:exec] (aggregator-style)<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] [grails:exec]<br /> [INFO] Using Grails 1.2.0<br /> Running pre-compiled script<br /> [INFO] ------------------------------------------------------------------------<br /> [ERROR] BUILD ERROR<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Unable to start Grails
Embedded error: java.lang.reflect.InvocationTargetException
[INFO] ————————————————————————
[INFO] For more information, run Maven with the -e switch
[INFO] ————————————————————————
[INFO] Total time: 14 seconds
[INFO] Finished at: Thu Jan 07 22:49:41 GMT 2010
[INFO] Final Memory: 32M/81M
[INFO] ————————————————————————

Latest release information is not available for plugin ‘nimble’, specify concrete release to install

Whilst trying to install the Nimble plugin for Grails using Maven I ran in to a spot of bother!

<br /> Chill:superted idimmu$ mvn grails:install-plugin -DpluginName=nimble<br /> [INFO] Scanning for projects...<br /> [INFO] Searching repository for plugin with prefix: 'grails'.<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building Unnamed - idimmu.net:superted:war:1.0-SNAPSHOT<br /> [INFO] task-segment: [grails:install-plugin] (aggregator-style)<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] [grails:install-plugin]<br /> [INFO] Using Grails 1.2.0<br /> Running pre-compiled script<br /> Environment set to development<br /> Reading remote plugin list ...<br /> Reading remote plugin list ...<br /> Latest release information is not available for plugin 'nimble', specify concrete release to install<br />

Integrating Grails and Maven

I’ve started investigating Grails for some projects and have been making some good headway and I like to use Maven for everything as it’s amazing, and generating projects is easy.

<br /> Chill:stsworkspace idimmu$ mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate -DarchetypeGroupId=org.grails -DarchetypeArtifactId=grails-maven-archetype -DarchetypeVersion=1.2.0 -DgroupId=idimmu.net -DartifactId=superted<br /> [INFO] Scanning for projects...<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Building Maven Default Project<br /> [INFO] task-segment: [org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate] (aggregator-style)<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Preparing archetype:generate<br /> [INFO] No goals needed for project - skipping<br /> [INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.<br /> [INFO] Setting property: velocimacro.messages.on => 'false'.<br /> [INFO] Setting property: resource.loader => 'classpath'.<br /> [INFO] Setting property: resource.manager.logwhenfound => 'false'.<br /> [INFO] [archetype:generate]<br /> [INFO] Generating project in Interactive mode<br /> [WARNING] No archetype repository found. Falling back to central repository (https://repo1.maven.org/maven2).<br /> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.<br /> Define value for version: 1.0-SNAPSHOT: :<br /> Confirm properties configuration:<br /> groupId: idimmu.net<br /> artifactId: superted<br /> version: 1.0-SNAPSHOT<br /> package: idimmu.net<br /> Y: :<br /> [INFO] ----------------------------------------------------------------------------<br /> [INFO] Using following parameters for creating OldArchetype: grails-maven-archetype:1.2.0<br /> [INFO] ----------------------------------------------------------------------------<br /> [INFO] Parameter: groupId, Value: idimmu.net<br /> [INFO] Parameter: packageName, Value: idimmu.net<br /> [INFO] Parameter: package, Value: idimmu.net<br /> [INFO] Parameter: artifactId, Value: superted<br /> [INFO] Parameter: basedir, Value: /Users/idimmu/Documents/stsworkspace<br /> [INFO] Parameter: version, Value: 1.0-SNAPSHOT<br /> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 147,column 20] : ${java.version} is not a valid reference.<br /> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 149,column 23] : ${java.home} is not a valid reference.<br /> [INFO] ********************* End of debug info from resources from generated POM ***********************<br /> [INFO] OldArchetype created in dir: /Users/idimmu/Documents/stsworkspace/superted<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] BUILD SUCCESSFUL<br /> [INFO] ------------------------------------------------------------------------<br /> [INFO] Total time: 15 seconds<br /> [INFO] Finished at: Thu Jan 07 21:45:39 GMT 2010<br /> [INFO] Final Memory: 12M/79M<br /> [INFO] ------------------------------------------------------------------------<br />

google-apis-mavenized does not compile

I need to write some backup software for our hosted Google Apps, so as we’re a Java shop I’m going to be using the Java API. Also we’re heavy users of Hudson and Maven so want to get the checked out source building with that.

There is a Google Code project called google-apis-mavenized which looks like it has done most of the work for us, but it does not build when it’s checked out.