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

Installation fails with Java 17 #8

Open
mipastgt opened this issue Apr 22, 2022 · 1 comment
Open

Installation fails with Java 17 #8

mipastgt opened this issue Apr 22, 2022 · 1 comment

Comments

@mipastgt
Copy link

Running mvn install with the latest version of Maven (3.8.5) and Java 17 results in the following error:

[INFO] --- gmavenplus-plugin: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:  5.204 s
[INFO] Finished at: 2022-04-22T15:58:54+02: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 '/Users/mpaus/Downloads/tmp/pi4j-maven-archetype-main/src/main/resources/META-INF/archetype-post-generate.groovy' Unsupported class file major version 61 -> [Help 1]

It seems Java 17 is not supported yet (although it is an LTS release and we are at Java 18 already).

@FDelporte
Copy link
Member

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

See 63f9c9a

@mipastgt 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