Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Different groovy dependency version between grails 2.3.0 and grails-maven-plugin 2.3.0 #35

Open
muskacirca opened this issue Oct 21, 2013 · 0 comments

Comments

@muskacirca
Copy link

When building war artefact via: mvn grails:war with grails 2.3.0, we have the following error at deployment time:

2013-10-21 17:04:17,108 driss-admin ERROR org.grails.plugin.resource.ResourceProcessor Unable to load resources
java.lang.IllegalStateException: Only 1 closure argument is accepted (args were: [bootstrap, bootstrap_utils])
    at org.grails.plugin.resource.module.ModulesBuilder.invokeMethod(ModulesBuilder.groovy:80)
    at ApplicationResources$_run_closure1_closure3.doCall(ApplicationResources.groovy:6)
    at ApplicationResources$_run_closure1.doCall(ApplicationResources.groovy:5)
    at org.grails.plugin.resource.ResourceProcessor$_loadModules_closure18.doCall(ResourceProcessor.groovy:719)
    at org.grails.plugin.resource.ResourceProcessor.loadModules(ResourceProcessor.groovy:713)
    at org.grails.plugin.resource.ResourceProcessor.reloadAll(ResourceProcessor.groovy:1006)
    at ResourcesGrailsPlugin$_closure3.doCall(ResourcesGrailsPlugin.groovy:165)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

The root cause seems to be a difference in version of groovy-all between the grails-maven-plugin (groovy 2.1.7) and grails cli (groovy 2.1.6).

We found that the class produce for ApplicationResources is different if you build it with grails cli and maven.

Workaround: As a workaround we forked the grails-maven-plugin to change its dependency from groovy-all-2.1.7 to groovy-all-2.1.6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant