Grails maven plugin wants Groovy 2.4.2

I am upgrading to Grails 2.4.2 because it supposedly fixes a bug with the maven plugin, due to which it creates a bad pom.xml file. Now, when I try to run the created 2.4.2 pom with mvn clean install , I get the following error message:

[ERROR] The org.grails target failed: Grails-Maven-plugin: 2.4.2: Maven-compilation (default-maven-compile) in the PROJECT project: could not create a classpath to run Grails. Inability to find org.codehaus.groovy: groovy -all: jar: 2.4.2 in https://REPO been cached to the local repository, permission will not re-interval the nexus update or update forced → [Help 1]

Groovy 2.4.2 the obvious does not exist, since 2.3.X is the latest version. How to make maven plugins accept 2.3.2 groovy -all package as dependency for Groovy?

+6
source share
1 answer

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

Update . I submitted a bug fix that was included in Grails. New org.grails:grails-maven-plugin:2.4.3 dependency org.grails:grails-maven-plugin:2.4.3 . You must update your Grails BuildConfig and pom file (or restore it).

+7
source

Source: https://habr.com/ru/post/971537/


All Articles