Hi everyone, I forked and cloned the project from GitHub <https://github.com/apache/logging-log4j2>. And spent the past couple of hours trying to build from source with mvn install.
It is failing with errors saying "class file has wrong version 55.0, should be 53.0" for "bad class file: /modules/java.base/java/util/EnumSet.class", which I think it means I probably need to find a Java 9 to install and build the project with? But since Java 9 was discontinued, I haven't been able to find an Oracle nor an OpenJDK version to install. I have attached an output txt file for maven install and my current maven toolchain.xml if it helps clarifying what I might have been doing wrong. Thanks, Joseph
[[1;34mINFO[m] Scanning for projects... [[1;33mWARNING[m] [[1;33mWARNING[m] Some problems were encountered while building the effective model for org.apache.logging.log4j:log4j-jmx-gui:jar:3.0.0-SNAPSHOT [[1;33mWARNING[m] 'dependencies.dependency.systemPath' for com.sun:jconsole:jar refers to a non-existing file /usr/lib/jvm/java-11-oracle/../lib/jconsole.jar. Please verify that you run Maven using a JDK and not just a JRE. @ line 196, column 23 [[1;33mWARNING[m] [[1;33mWARNING[m] Some problems were encountered while building the effective model for org.apache.logging.log4j.samples:log4j-spring-cloud-config-sample-server:jar:3.0.0-SNAPSHOT [[1;33mWARNING[m] 'build.plugins.plugin.version' for com.github.spotbugs:spotbugs-maven-plugin is missing. @ line 140, column 15 [[1;33mWARNING[m] [[1;33mWARNING[m] It is highly recommended to fix these problems because they threaten the stability of your build. [[1;33mWARNING[m] [[1;33mWARNING[m] For this reason, future Maven versions might no longer support building such malformed projects. [[1;33mWARNING[m] [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1mReactor Build Order:[m [[1;34mINFO[m] [[1;34mINFO[m] Apache Log4j 2 [pom] [[1;34mINFO[m] Apache Log4j API Java 9 support [pom] [[1;34mINFO[m] Apache Log4j API [jar] [[1;34mINFO[m] Apache Log4j Plugins Module support [pom] [[1;34mINFO[m] Apache Log4j Plugins [jar] [[1;34mINFO[m] Apache Log4j Core Java 9 support [pom] [[1;34mINFO[m] Apache Log4j Core [jar] [[1;34mINFO[m] Apache Log4j Layout for Jackson [jar] [[1;34mINFO[m] Apache Log4j Layout for Jackson JSON [jar] [[1;34mINFO[m] Apache Log4j 1.x Compatibility API [jar] [[1;34mINFO[m] Apache Log4j Layout for Jackson XML [jar] [[1;34mINFO[m] Apache Log4j Layout for Jackson YAML [jar] [[1;34mINFO[m] Apache Log4j Layout for JSON template [jar] [[1;34mINFO[m] Apache Log4j Core Integration Tests [jar] [[1;34mINFO[m] Apache Log4j to SLF4J Adapter [jar] [[1;34mINFO[m] Apache Log4j SLF4J Binding [jar] [[1;34mINFO[m] Apache Log4j SLF4J 1.8+ Binding [jar] [[1;34mINFO[m] Apache Log4j Commons Logging Bridge [jar] [[1;34mINFO[m] Apache Log4j CSV [jar] [[1;34mINFO[m] Apache Log4j Flume Bridge [jar] [[1;34mINFO[m] Apache Log4j Web [jar] [[1;34mINFO[m] Apache Log4j Tag Library [jar] [[1;34mINFO[m] Apache Log4j JMX GUI [jar] [[1;34mINFO[m] Apache Log4j Samples [pom] [[1;34mINFO[m] Apache Log4j Samples: Flume - Common [jar] [[1;34mINFO[m] Apache Log4j Samples: Flume - Remote [war] [[1;34mINFO[m] Apache Log4j Samples: Flume - Embedded [war] [[1;34mINFO[m] Apache Log4j Samples: Configuration [jar] [[1;34mINFO[m] Apache Log4j Samples: LoggerProperties [jar] [[1;34mINFO[m] Apache Log4j BOM [pom] [[1;34mINFO[m] Apache Log4j JDBC [jar] [[1;34mINFO[m] Apache Log4j JDBC DBCP 2 [jar] [[1;34mINFO[m] Apache Log4j JPA [jar] [[1;34mINFO[m] Apache Log4j JeroMQ [jar] [[1;34mINFO[m] Apache Log4j JMS [jar] [[1;34mINFO[m] Apache Log4j Kafka [jar] [[1;34mINFO[m] Apache Log4j Redis [jar] [[1;34mINFO[m] Apache Log4j CouchDB [jar] [[1;34mINFO[m] Apache Log4j MongoDB 3 [jar] [[1;34mINFO[m] Apache Log4j MongoDB 4 [jar] [[1;34mINFO[m] Apache Log4j Cassandra [jar] [[1;34mINFO[m] Apache Log4J Performance Tests [jar] [[1;34mINFO[m] Apache Log4j Streaming Interface [jar] [[1;34mINFO[m] Apache Log4j JUL Adapter [jar] [[1;34mINFO[m] Apache Log4j JDK Platform Logging Adapter [jar] [[1;34mINFO[m] Apache Log4j Liquibase Binding [jar] [[1;34mINFO[m] Apache Log4j App Server Support [jar] [[1;34mINFO[m] Apache Log4j SMTP [jar] [[1;34mINFO[m] Apache Log4j OSGi [jar] [[1;34mINFO[m] Apache Log4j Docker Library [jar] [[1;34mINFO[m] Apache Log4j Kubernetes Library [jar] [[1;34mINFO[m] Apache Log4j Spring Boot Support [jar] [[1;34mINFO[m] Apache Log4j Spring Cloud Config Support [pom] [[1;34mINFO[m] Apache Log4j Spring Cloud Config Client Support [jar] [[1;34mINFO[m] Apache Log4j Sample Configuration Service [jar] [[1;34mINFO[m] Apache Log4j Spring Cloud Config Samples [pom] [[1;34mINFO[m] Spring Cloud Config Sample Application [jar] [[1;34mINFO[m] [[1;34mINFO[m] [1m-------------------< [0;36morg.apache.logging.log4j:log4j[0;1m >-------------------[m [[1;34mINFO[m] [1mBuilding Apache Log4j 2 3.0.0-SNAPSHOT [1/57][m [[1;34mINFO[m] [1m--------------------------------[ pom ]---------------------------------[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.1.0:clean[m [1m(default-clean)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] Deleting /mnt/d/work/opensource/logging-log4j2/target [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-enforcer-plugin:1.4.1:enforce[m [1m(enforce-maven-version)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(process-resource-bundles)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [[1;34mINFO[m] Copying 3 resources from 1 bundle. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(default)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] Skipping remote resources execution. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-site-plugin:3.8.2:attach-descriptor[m [1m(attach-descriptor)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] Attaching 'src/site/site.xml' site descriptor with classifier 'site'. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-failsafe-plugin:2.22.2:integration-test[m [1m(default)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] No tests to run. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-failsafe-plugin:2.22.2:verify[m [1m(default)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-source-plugin:3.0.1:jar-no-fork[m [1m(attach-sources)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-source-plugin:3.0.1:test-jar-no-fork[m [1m(attach-sources)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mrevapi-maven-plugin:0.10.5:check[m [1m(default)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-install-plugin:2.5.2:install[m [1m(default-install)[m @ [36mlog4j[0;1m ---[m [[1;34mINFO[m] Installing /mnt/d/work/opensource/logging-log4j2/pom.xml to /home/jt/.m2/repository/org/apache/logging/log4j/log4j/3.0.0-SNAPSHOT/log4j-3.0.0-SNAPSHOT.pom [[1;34mINFO[m] Installing /mnt/d/work/opensource/logging-log4j2/target/log4j-3.0.0-SNAPSHOT-site.xml to /home/jt/.m2/repository/org/apache/logging/log4j/log4j/3.0.0-SNAPSHOT/log4j-3.0.0-SNAPSHOT-site.xml [[1;34mINFO[m] [[1;34mINFO[m] [1m--------------< [0;36morg.apache.logging.log4j:log4j-api-java9[0;1m >--------------[m [[1;34mINFO[m] [1mBuilding Apache Log4j API Java 9 support 3.0.0-SNAPSHOT [2/57][m [[1;34mINFO[m] [1m--------------------------------[ pom ]---------------------------------[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.1.0:clean[m [1m(default-clean)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Deleting /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-enforcer-plugin:1.4.1:enforce[m [1m(enforce-maven-version)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-toolchains-plugin:1.1:toolchain[m [1m(default)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Required toolchain: jdk [ version='[11, )' ] [[1;34mINFO[m] Found matching toolchain for type jdk: JDK[/usr/lib/jvm/java-11-oracle] [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(process-resource-bundles)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [[1;34mINFO[m] Copying 3 resources from 1 bundle. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(default)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Skipping remote resources execution. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Toolchain in maven-compiler-plugin: JDK[/usr/lib/jvm/java-11-oracle] [[1;34mINFO[m] Changes detected - recompiling the module! [[1;34mINFO[m] Compiling 12 source files to /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target/classes [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.8.1:testCompile[m [1m(default-test-compile)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Toolchain in maven-compiler-plugin: JDK[/usr/lib/jvm/java-11-oracle] [[1;34mINFO[m] Changes detected - recompiling the module! [[1;34mINFO[m] Compiling 3 source files to /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target/test-classes [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-surefire-plugin:2.13:test[m [1m(test)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Toolchain in surefire-plugin: JDK[/usr/lib/jvm/java-11-oracle] [[1;34mINFO[m] Surefire report directory: /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.apache.logging.log4j.util.java9.ProcessIdUtilTest Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Running org.apache.logging.log4j.util.java9.StackLocatorTest Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec Results : Tests run: 8, Failures: 0, Errors: 0, Skipped: 0 [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-assembly-plugin:3.1.0:single[m [1m(zip)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Reading assembly descriptor: src/assembly/java9.xml [[1;33mWARNING[m] The assembly descriptor contains a filesystem-root relative reference, which is not cross platform compatible /classes/META-INF/versions/9 [[1;34mINFO[m] Building zip: /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target/log4j-api-java9-3.0.0-SNAPSHOT.zip [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-site-plugin:3.8.2:attach-descriptor[m [1m(attach-descriptor)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] No site descriptor found: nothing to attach. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-failsafe-plugin:2.22.2:integration-test[m [1m(default)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Toolchain in maven-failsafe-plugin: JDK[/usr/lib/jvm/java-11-oracle] [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-failsafe-plugin:2.22.2:verify[m [1m(default)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-source-plugin:3.0.1:jar-no-fork[m [1m(attach-sources)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-source-plugin:3.0.1:test-jar-no-fork[m [1m(attach-sources)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mrevapi-maven-plugin:0.10.5:check[m [1m(default)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-install-plugin:2.5.2:install[m [1m(default-install)[m @ [36mlog4j-api-java9[0;1m ---[m [[1;34mINFO[m] Installing /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/pom.xml to /home/jt/.m2/repository/org/apache/logging/log4j/log4j-api-java9/3.0.0-SNAPSHOT/log4j-api-java9-3.0.0-SNAPSHOT.pom [[1;34mINFO[m] Installing /mnt/d/work/opensource/logging-log4j2/log4j-api-java9/target/log4j-api-java9-3.0.0-SNAPSHOT.zip to /home/jt/.m2/repository/org/apache/logging/log4j/log4j-api-java9/3.0.0-SNAPSHOT/log4j-api-java9-3.0.0-SNAPSHOT.zip [[1;34mINFO[m] [[1;34mINFO[m] [1m-----------------< [0;36morg.apache.logging.log4j:log4j-api[0;1m >-----------------[m [[1;34mINFO[m] [1mBuilding Apache Log4j API 3.0.0-SNAPSHOT [3/57][m [[1;34mINFO[m] [1m--------------------------------[ jar ]---------------------------------[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-clean-plugin:3.1.0:clean[m [1m(default-clean)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Deleting /mnt/d/work/opensource/logging-log4j2/log4j-api/target [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-enforcer-plugin:1.4.1:enforce[m [1m(enforce-maven-version)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mbuild-helper-maven-plugin:1.7:add-source[m [1m(add-source)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Source directory: /mnt/d/work/opensource/logging-log4j2/log4j-api/target/log4j-api-java9 added. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(process-resource-bundles)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4 [[1;34mINFO[m] Copying 3 resources from 1 bundle. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-remote-resources-plugin:1.7.0:process[m [1m(default)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Copying 0 resource from 0 bundle. [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-resources-plugin:3.2.0:resources[m [1m(default-resources)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered resources. [[1;34mINFO[m] Using 'UTF-8' encoding to copy filtered properties files. [[1;34mINFO[m] Copying 2 resources [[1;34mINFO[m] Copying 3 resources [[1;34mINFO[m] Copying 3 resources [[1;34mINFO[m] [[1;34mINFO[m] [1m--- [0;32mmaven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m @ [36mlog4j-api[0;1m ---[m [[1;34mINFO[m] Changes detected - recompiling the module! [[1;34mINFO[m] Compiling 136 source files to /mnt/d/work/opensource/logging-log4j2/log4j-api/target/classes [[1;34mINFO[m] ------------------------------------------------------------- [[1;31mERROR[m] COMPILATION ERROR : [[1;34mINFO[m] ------------------------------------------------------------- [[1;31mERROR[m] /mnt/d/work/opensource/logging-log4j2/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java:[19,17] cannot access java.util.EnumSet bad class file: /modules/java.base/java/util/EnumSet.class class file has wrong version 55.0, should be 53.0 Please remove or make sure it appears in the correct subdirectory of the classpath. [[1;34mINFO[m] 1 error [[1;34mINFO[m] ------------------------------------------------------------- [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1mReactor Summary for Apache Log4j 2 3.0.0-SNAPSHOT:[m [[1;34mINFO[m] [[1;34mINFO[m] Apache Log4j 2 ..................................... [1;32mSUCCESS[m [ 2.114 s] [[1;34mINFO[m] Apache Log4j API Java 9 support .................... [1;32mSUCCESS[m [ 9.404 s] [[1;34mINFO[m] Apache Log4j API ................................... [1;31mFAILURE[m [ 11.102 s] [[1;34mINFO[m] Apache Log4j Plugins Module support ................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Plugins ............................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Core Java 9 support ................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Core .................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Layout for Jackson .................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Layout for Jackson JSON ............... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j 1.x Compatibility API ................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Layout for Jackson XML ................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Layout for Jackson YAML ............... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Layout for JSON template .............. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Core Integration Tests ................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j to SLF4J Adapter ...................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j SLF4J Binding ......................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j SLF4J 1.8+ Binding .................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Commons Logging Bridge ................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j CSV ................................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Flume Bridge .......................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Web ................................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Tag Library ........................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JMX GUI ............................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples ............................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples: Flume - Common ............... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples: Flume - Remote ............... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples: Flume - Embedded ............. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples: Configuration ................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Samples: LoggerProperties ............. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j BOM ................................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JDBC .................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JDBC DBCP 2 ........................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JPA ................................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JeroMQ ................................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JMS ................................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Kafka ................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Redis ................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j CouchDB ............................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j MongoDB 3 ............................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j MongoDB 4 ............................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Cassandra ............................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4J Performance Tests ..................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Streaming Interface ................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JUL Adapter ........................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j JDK Platform Logging Adapter .......... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Liquibase Binding ..................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j App Server Support .................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j SMTP .................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j OSGi .................................. [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Docker Library ........................ [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Kubernetes Library .................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Spring Boot Support ................... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Spring Cloud Config Support ........... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Spring Cloud Config Client Support .... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Sample Configuration Service .......... [1;33mSKIPPED[m [[1;34mINFO[m] Apache Log4j Spring Cloud Config Samples ........... [1;33mSKIPPED[m [[1;34mINFO[m] Spring Cloud Config Sample Application ............. [1;33mSKIPPED[m [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] [1;31mBUILD FAILURE[m [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;34mINFO[m] Total time: 26.430 s [[1;34mINFO[m] Finished at: 2020-12-08T22:13:25+11:00 [[1;34mINFO[m] [1m------------------------------------------------------------------------[m [[1;31mERROR[m] Failed to execute goal [32morg.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile[m [1m(default-compile)[m on project [36mlog4j-api[m: [1;31mCompilation failure[m [[1;31mERROR[m] [1;31m/mnt/d/work/opensource/logging-log4j2/log4j-api/src/main/java/org/apache/logging/log4j/spi/StandardLevel.java:[19,17] cannot access java.util.EnumSet[m [[1;31mERROR[m] [1;31m bad class file: /modules/java.base/java/util/EnumSet.class[m [[1;31mERROR[m] [1;31m class file has wrong version 55.0, should be 53.0[m [[1;31mERROR[m] [1;31m Please remove or make sure it appears in the correct subdirectory of the classpath.[m [[1;31mERROR[m] [1;31m[m [[1;31mERROR[m] -> [1m[Help 1][m [[1;31mERROR[m] [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch. [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging. [[1;31mERROR[m] [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles: [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [[1;31mERROR[m] [[1;31mERROR[m] After correcting the problems, you can resume the build with the command [[1;31mERROR[m] [1mmvn <args> -rf :log4j-api[m
<?xml version="1.0" encoding="UTF8"?> <toolchains> <toolchain> <type>jdk</type> <provides> <version>11</version> </provides> <configuration> <jdkHome>/usr/lib/jvm/java-11-oracle</jdkHome> </configuration> </toolchain> </toolchains>