gmaven

A required class was missing while executing org.codehaus.gmaven:gmaven-plugin:1.3:testCompile: groovy/lang/Closure

荒凉一梦 提交于 2020-01-04 09:30:12
问题 I'm trying to mvn clean install a maven project that has landed on my plate, however I'm getting an exception which I believe may be due to a version conflict of Groovy, this is what I get : Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.3:testCompile (default) on project maven-myproject-plugin: Execution default of goal org.codehaus.gmaven:gmaven-plugin:1.3:testCompile failed: A required class was missing while executing org.codehaus.gmaven:gmaven-plugin:1.3:testCompile: groovy

Running script from GMaven results in “No such property: project” exception

旧巷老猫 提交于 2019-12-25 02:38:12
问题 tl;dr: How can I resolve the " No such property: project " error when running a Groovy script from within Maven using GMaven? I'm using GMaven 1.5, Groovy 2.2.1. and Java 1.7, and Maven 3.1.0 . I have a Groovy script - DeltaCodeGen (it has no package)- that generates Java code (for a Java project, this is the only Groovy in the project). It used to be that we would have the script generate the .java files and those would get checked in, but now we are trying to have them built during the