Hello Joseph, You need to have both JDK 8 and 11 installed and configured in your toolchains.xml file. For reference, you can check how we do it in GitHub Actions workflow: maven.yml <https://github.com/apache/logging-log4j2/blob/master/.github/workflows/maven.yml> and maven-toolchains.xml <https://github.com/apache/logging-log4j2/blob/master/.github/workflows/maven-toolchains.xml>. Once this is done, *./mvnw package -DskipTests* should succeed. Let us know if you encounter any further troubles.
Kind regards. On Tue, Dec 8, 2020 at 12:22 PM Joseph Tsai <jtsa0...@gmail.com> wrote: > 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 >