Closed ankitaprabhu closed 2 years ago
Can I see the stacktrace (with -e
)?
Hi @keeganwitt ,
PFA of stacktrace as suggetsed on executing mvn clean install command. StackTrace.txt
Best Regards, Ankita Prabhu.
Somewhere AbstractExtensionMethodCache
is being used. This was added in Groovy 3.0, but you are trying to use Groovy 2.5.8, which won't have this available.
Hi @keeganwitt ,
As suggested i increase the groovy version to latest i.e. 3.0.10 after that facing error as below.
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Using Groovy 3.0.10 to perform compileTests.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Project Plan (Parent POM) 1.0-SNAPSHOT:
[INFO]
[INFO] Project Plan (Parent POM) .......................... SUCCESS [ 42.129 s]
[INFO] Project plan service ............................... FAILURE [04:53 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:37 min
[INFO] Finished at: 2022-06-01T11:46:43+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.8.1:compileTests (default) on project c4p-project-plan: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: startup failed:
[ERROR] Could not instantiate global transform class org.spockframework.compiler.SpockTransform specified at jar:file:/C:/Users/I319166/.m2/repository/org/spockframework/spock-core/2.0-M1-groovy-2.5/spock-core-2.0-M1-groovy-2.5.jar!/META-INF/services/org.codehaus.groovy.transform.ASTTransformation because of exception org.spockframework.util.IncompatibleGroovyVersionException: The Spock compiler plugin cannot execute because Spock 2.0.0-M1-groovy-2.5 is not compatible with Groovy 3.0.10. For more information, see http://docs.spockframework.org
[ERROR] Spock artifact: file:/C:/Users/I319166/.m2/repository/org/spockframework/spock-core/2.0-M1-groovy-2.5/spock-core-2.0-M1-groovy-2.5.jar
[ERROR] Groovy artifact: file:/C:/Users/I319166/.m2/repository/org/codehaus/groovy/groovy/3.0.10/groovy-3.0.10.jar
[ERROR]
[ERROR] 1 error
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
The problem is in the error you pasted: Spock 2.0.0-M1-groovy-2.5 is not compatible with Groovy 3.0.10
. You should use version 2.0-groovy-3.0 or 2.1-groovy-3.0, etc.
Closing stale issue. If you believe this should be reopened, please leave a comment.
Hello,
We are facing issue as "[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.8.1:compileTests (default) on project c4p-project-plan: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: org/codehaus/groovy/transform/stc/AbstractExtensionMethodCache: org.codehaus.groovy.transform.stc.AbstractExtensionMethodCache -> [Help 1]" attached reference for more details while executing "mvn clean install" cmd on our project.
Our POM looks like below.
We upgraded the spring oot versio to 2.6.6 after that we are facing the above issue as attached.
Kindly help us here to resolve the same or do let me know in case of any further info if needed.
Best Regards, Ankita Prabhu.