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