Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails maven plugin wants Groovy 2.4.2

I upgrade to Grails 2.4.2 because that supposedly fixes a bug with the maven plugin that caused it to generate a bad pom.xml file. Now, when I try to run the 2.4.2-generated pom with mvn clean install I get the following error message:

[ERROR] Failed to execute goal org.grails:grails-maven-plugin:2.4.2:maven-compile (default-maven-compile) on project PROJECT : Failed to create classpath for Grails execution. Failure to find org.codehaus.groovy:groovy-all:jar:2.4.2 in https://REPO was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

Groovy 2.4.2 obvious doesn't exist since 2.3.X is the latest release. How do I force the maven plugins to take 2.3.2's groovy-all package as the dependency to use for Groovy?

like image 502
Mike Thomsen Avatar asked Jun 30 '14 13:06

Mike Thomsen


1 Answers

Solution: it was a bug in the Maven plugin. I sent a code fix to the owner.

Update: I sent a bug fix that was incorporated into Grails. The new dependency is org.grails:grails-maven-plugin:2.4.3. You should update your Grails BuildConfig and the pom file (or regenerate it).

like image 96
Mike Thomsen Avatar answered Oct 06 '22 01:10

Mike Thomsen