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

"mvn install" fails #10

Open
myvikes opened this issue Jan 10, 2024 · 1 comment
Open

"mvn install" fails #10

myvikes opened this issue Jan 10, 2024 · 1 comment

Comments

@myvikes
Copy link

myvikes commented Jan 10, 2024

Details:

mvn --version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: C:\apache_software\apache-maven-3.9.6
Java version: 21.0.1, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-21.0.1
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Error:

mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< it.lb.rasp:raspimaven-archetype >-------------------
[INFO] Building raspimaven-archetype 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------[ maven-archetype ]---------------------------
[INFO]
[INFO] --- gplus:1.12.1:addSources (default) @ raspimaven-archetype ---
[INFO]
[INFO] --- gplus:1.12.1:generateStubs (default) @ raspimaven-archetype ---
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Using Groovy 3.0.7 to perform generateStubs.
[INFO] Generated 1 stub.
[INFO]
[INFO] --- resources:3.2.0:resources (default-resources) @ raspimaven-archetype ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 10 resources
[INFO]
[INFO] --- gplus:1.12.1:compile (default) @ raspimaven-archetype ---
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Using Groovy 3.0.7 to perform compile.
[INFO] Parallel parsing disabled.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.679 s
[INFO] Finished at: 2024-01-10T10:44:19-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.12.1:compile (default) on project raspimaven-archetype: Error occurred while calling a method on a Groovy class from classpath.: InvocationTargetException: BUG! exception in phase 'semantic analysis' in source unit 'C:\Users\rascal\Downloads\pi4j-maven-archetype-main\src\main\resources\META-INF\archetype-post-generate.groovy' Unsupported class file major version 65 -> [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

@FDelporte
Copy link
Member

FDelporte commented Feb 28, 2024

New groovy version was needed according to feedback I got on Mastodon.

See 63f9c9a

@myvikes can you validate this change please?

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

2 participants