Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running groovy-maven-plugin:2.1.1:execute with Groovy 3.0.2 #19

Open
bobtiernay-okta opened this issue Mar 15, 2020 · 0 comments
Open

Comments

@bobtiernay-okta
Copy link

bobtiernay-okta commented Mar 15, 2020

Seems like this happens when upgrading from Groovy 3.0.1 to 3.0.2:

java.lang.IllegalAccessError: tried to access method groovy.grape.GrapeIvy.getLoadedDepsForLoader(Ljava/lang/ClassLoader;)Ljava/util/Set; from class groovy.grape.GrapeIvy$getLoadedDepsForLoader

Full trace:

[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (default-cli) on project sage: Execution default-cli of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: An API incompatibility was encountered while executing org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute: java.lang.IllegalAccessError: tried to access method groovy.grape.GrapeIvy.getLoadedDepsForLoader(Ljava/lang/ClassLoader;)Ljava/util/Set; from class groovy.grape.GrapeIvy$getLoadedDepsForLoader
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.codehaus.gmaven:groovy-maven-plugin:2.1.1
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/btiernay/.m2/repository/org/codehaus/gmaven/groovy-maven-plugin/2.1.1/groovy-maven-plugin-2.1.1.jar
[ERROR] urls[1] = file:/Users/btiernay/.m2/repository/org/codehaus/groovy/groovy/3.0.2/groovy-3.0.2.jar
[ERROR] urls[2] = file:/Users/btiernay/.m2/repository/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar
[ERROR] urls[3] = file:/Users/btiernay/.m2/repository/org/sonatype/gossip/gossip-slf4j/1.8/gossip-slf4j-1.8.jar
[ERROR] urls[4] = file:/Users/btiernay/.m2/repository/org/sonatype/gossip/gossip-core/1.8/gossip-core-1.8.jar
[ERROR] urls[5] = file:/Users/btiernay/.m2/repository/org/sonatype/gossip/gossip-bootstrap/1.8/gossip-bootstrap-1.8.jar
[ERROR] urls[6] = file:/Users/btiernay/.m2/repository/com/google/guava/guava/14.0.1/guava-14.0.1.jar
[ERROR] urls[7] = file:/Users/btiernay/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
[ERROR] urls[8] = file:/Users/btiernay/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.16/plexus-interpolation-1.16.jar
[ERROR] urls[9] = file:/Users/btiernay/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
[ERROR] urls[10] = file:/Users/btiernay/.m2/repository/org/codehaus/gmaven/gmaven-adapter-api/2.1.1/gmaven-adapter-api-2.1.1.jar
[ERROR] urls[11] = file:/Users/btiernay/.m2/repository/org/codehaus/gmaven/gmaven-adapter-impl/2.1.1/gmaven-adapter-impl-2.1.1.jar
[ERROR] urls[12] = file:/Users/btiernay/.m2/repository/org/codehaus/groovy/groovy-all/2.4.9/groovy-all-2.4.9.jar
[ERROR] urls[13] = file:/Users/btiernay/.m2/repository/org/apache/ant/ant/1.9.4/ant-1.9.4.jar
[ERROR] urls[14] = file:/Users/btiernay/.m2/repository/org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar
[ERROR] urls[15] = file:/Users/btiernay/.m2/repository/jline/jline/2.12/jline-2.12.jar
[ERROR] urls[16] = file:/Users/btiernay/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant