Closed milanJovicSupsi closed 1 year ago
Fatal error compiling: error: invalid target release: 17
Java 17 is required to compile the olca-modules; seems that your Maven uses an older JDK
I have tested if that's the case:
~/eclipse-workspace/olca-modules$ java -version java version "17.0.2" 2022-01-18 LTS Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86) Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)
it looks fine. Then I tried to play with maven-compiler-plugin version, source and target fields and when I put this one
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
I managed to have a compilation success on olca-formula but then it fails on the next step olca-core
/eclipse-workspace/olca-modules$ mvn -e clean install WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] org.openlca:olca-modules [pom] [INFO] org.openlca:olca-formula [jar] [INFO] olca-core [jar] [INFO] olca-ecospold-1 [jar] [INFO] olca-ecospold-2 [jar] [INFO] olca-ilcd [jar] [INFO] olca-io [jar] [INFO] olca-proto-io [jar] [INFO] olca-git [jar] [INFO] olca-ipc [jar] [INFO] [INFO] ----------------------< org.openlca:olca-modules >---------------------- [INFO] Building org.openlca:olca-modules 2.0.0 [1/10] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ olca-modules --- [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ olca-modules >>> [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ olca-modules <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ olca-modules --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ olca-modules --- [INFO] Installing /home/user/eclipse-workspace/olca-modules/pom.xml to /home/user/.m2/repository/org/openlca/olca-modules/2.0.0/olca-modules-2.0.0.pom [INFO] [INFO] ----------------------< org.openlca:olca-formula >---------------------- [INFO] Building org.openlca:olca-formula 2.0.0 [2/10] [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The artifact org.slf4j:slf4j-log4j12:jar:1.7.35 has been relocated to org.slf4j:slf4j-reload4j:jar:1.7.35 [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ olca-formula --- [INFO] Deleting /home/user/eclipse-workspace/olca-modules/olca-formula/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ olca-formula --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/user/eclipse-workspace/olca-modules/olca-formula/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ olca-formula --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 80 source files to /home/user/eclipse-workspace/olca-modules/olca-formula/target/classes [INFO] /home/user/eclipse-workspace/olca-modules/olca-formula/src/main/java/org/openlca/expressions/FormulaParser.java: Some input files use or override a deprecated API. [INFO] /home/user/eclipse-workspace/olca-modules/olca-formula/src/main/java/org/openlca/expressions/FormulaParser.java: Recompile with -Xlint:deprecation for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ olca-formula --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/user/eclipse-workspace/olca-modules/olca-formula/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ olca-formula --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 16 source files to /home/user/eclipse-workspace/olca-modules/olca-formula/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ olca-formula --- [INFO] Surefire report directory: /home/user/eclipse-workspace/olca-modules/olca-formula/target/surefire-reports
Running org.openlca.expressions.BindingTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec Running org.openlca.expressions.ETest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.openlca.expressions.ParameterNamesTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec Running org.openlca.expressions.FailTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec Running org.openlca.expressions.FunctionTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running org.openlca.expressions.ScopingTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.openlca.expressions.OperatorTest Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.openlca.expressions.SumTest Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec Running org.openlca.expressions.SimpleCycleTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.openlca.expressions.SpecificationTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec Running org.openlca.expressions.VariableRetrievalTest Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.openlca.expressions.RealWorldTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.openlca.expressions.ConstantsAndFunctionsTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec Running org.openlca.expressions.NumberTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec Running org.openlca.formula.FormulasTest Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec Running org.openlca.formula.LexerTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Results :
Tests run: 62, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ olca-formula ---
[INFO] Building jar: /home/user/eclipse-workspace/olca-modules/olca-formula/target/olca-formula-2.0.0.jar
[INFO]
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ olca-formula >>>
[INFO]
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ olca-formula <<<
[INFO]
[INFO]
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ olca-formula ---
[INFO] Building jar: /home/user/eclipse-workspace/olca-modules/olca-formula/target/olca-formula-2.0.0-sources.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ olca-formula ---
[INFO] Installing /home/user/eclipse-workspace/olca-modules/olca-formula/target/olca-formula-2.0.0.jar to /home/user/.m2/repository/org/openlca/olca-formula/2.0.0/olca-formula-2.0.0.jar
[INFO] Installing /home/user/eclipse-workspace/olca-modules/olca-formula/pom.xml to /home/user/.m2/repository/org/openlca/olca-formula/2.0.0/olca-formula-2.0.0.pom
[INFO] Installing /home/user/eclipse-workspace/olca-modules/olca-formula/target/olca-formula-2.0.0-sources.jar to /home/user/.m2/repository/org/openlca/olca-formula/2.0.0/olca-formula-2.0.0-sources.jar
[INFO]
[INFO] -----------------------< org.openlca:olca-core >------------------------
[INFO] Building olca-core 2.0.0 [3/10]
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.slf4j:slf4j-log4j12:jar:1.7.35 has been relocated to org.slf4j:slf4j-reload4j:jar:1.7.35
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ olca-core ---
[INFO] Deleting /home/user/eclipse-workspace/olca-modules/olca-core/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ olca-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ olca-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 504 source files to /home/user/eclipse-workspace/olca-modules/olca-core/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[11,8] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[14,16] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[16,9] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[19,16] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[21,17] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[22,17] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[23,9] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[26,16] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[28,17] class, interface, or enum expected
[ERROR] /home/user/eclipse-workspace/olca-modules/olca-core/src/main/java/org/openlca/jsonld/input/CategoryReader.java:[28,85]
The tests in the master branch fail as things are still in development. You need to compile it with -DskipTests=true
flag, as described in the README. (Also, it is better to use mvn -v
instead of java --version
to check which Java Maven takes.)
Thanks for the answer,
I had to adjust JAVA_HOME to point to the jdk 17.
~/eclipse-workspace/olca-modules$ mvn -v Apache Maven 3.6.3 Maven home: /usr/share/maven Java version: 17.0.2, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17.0.2 Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "5.13.0-30-generic", arch: "amd64", family: "unix"
and now I retrieved again the sources from git to make the clean install tryout again, but unfortunately I have a new issue: ~/eclipse-workspace/olca-modules$ mvn install -DskipTests=true [ERROR] Error executing Maven. [ERROR] java.lang.IllegalStateException: Unable to load cache item [ERROR] Caused by: Unable to load cache item [ERROR] Caused by: Could not initialize class com.google.inject.internal.cglib.core.$MethodWrapper
I am working on Ubuntu 20.04
Still doing something wrong?
I found the issue. There might be someone else who face the same problem
Only the particular version of maven seems to work well with Java 17. I had to download manually the package maven 3.8.4, to set the PATH
The rest is then as you explained in the readme file
Thanks for your support.
Dear all,
I have tried to follow the instructions and then I tried to install the modules as suggested. It always fails on the olca-formula module.
Could you please help?
~/eclipse-workspace/olca-modules$ mvn -e install -DskipTests=true WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [INFO] Error stack traces are turned on. [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] org.openlca:olca-modules [pom] [INFO] org.openlca:olca-formula [jar] [INFO] olca-core [jar] [INFO] olca-ecospold-1 [jar] [INFO] olca-ecospold-2 [jar] [INFO] olca-ilcd [jar] [INFO] olca-io [jar] [INFO] olca-proto-io [jar] [INFO] olca-git [jar] [INFO] olca-ipc [jar] [INFO] [INFO] ----------------------< org.openlca:olca-modules >---------------------- [INFO] Building org.openlca:olca-modules 2.0.0 [1/10] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ olca-modules >>> [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ olca-modules <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ olca-modules --- [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ olca-modules --- [INFO] Installing /home/user/eclipse-workspace/olca-modules/pom.xml to /home/user/.m2/repository/org/openlca/olca-modules/2.0.0/olca-modules-2.0.0.pom [INFO] [INFO] ----------------------< org.openlca:olca-formula >---------------------- [INFO] Building org.openlca:olca-formula 2.0.0 [2/10] [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The artifact org.slf4j:slf4j-log4j12:jar:1.7.35 has been relocated to org.slf4j:slf4j-reload4j:jar:1.7.35 [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ olca-formula --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/user/eclipse-workspace/olca-modules/olca-formula/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ olca-formula --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 80 source files to /home/user/eclipse-workspace/olca-modules/olca-formula/target/classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for org.openlca:olca-modules 2.0.0: [INFO] [INFO] org.openlca:olca-modules ........................... SUCCESS [ 0.484 s] [INFO] org.openlca:olca-formula ........................... FAILURE [ 0.346 s] [INFO] olca-core .......................................... SKIPPED [INFO] olca-ecospold-1 .................................... SKIPPED [INFO] olca-ecospold-2 .................................... SKIPPED [INFO] olca-ilcd .......................................... SKIPPED [INFO] olca-io ............................................ SKIPPED [INFO] olca-proto-io ...................................... SKIPPED [INFO] olca-git ........................................... SKIPPED [INFO] olca-ipc ........................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.945 s [INFO] Finished at: 2022-03-02T17:13:26+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project olca-formula: Fatal error compiling: error: invalid target release: 17 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project olca-formula: Fatal error compiling at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error compiling at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1086) at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:168) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.codehaus.plexus.compiler.CompilerException: error: invalid target release: 17 at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:173) at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:174) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1075) at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:168) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.IllegalArgumentException: error: invalid target release: 17 at com.sun.tools.javac.main.Arguments.error (Arguments.java:907) at com.sun.tools.javac.main.Arguments.doProcessArgs (Arguments.java:383) at com.sun.tools.javac.main.Arguments.processArgs (Arguments.java:347) at com.sun.tools.javac.main.Arguments.init (Arguments.java:246) at com.sun.tools.javac.api.JavacTool.getTask (JavacTool.java:185) at com.sun.tools.javac.api.JavacTool.getTask (JavacTool.java:119) at com.sun.tools.javac.api.JavacTool.getTask (JavacTool.java:68) at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess (JavaxToolsCompiler.java:125) at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile (JavacCompiler.java:174) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1075) at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:168) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [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 -rf :olca-formula