Somehow your tool chain is not being found. The --release option is only available in java 9. When the build runs the compile plugin should tell you that it is using the Java 9 tool chain.
Ralph > On Jul 10, 2017, at 9:51 PM, kenneth mcfarland <kennethpmcfarl...@gmail.com> > wrote: > > I am running Ubuntu 16.04.2 LTS AMD 64 > > The sole purpose of my laptop is to get this build to work. I've literally > reformatted my machine just for this project and I'm at my wits end trying > to figure this out after googling for 2 days. > > I've made sure the POM reflects the correct path to my jdk, and I've > experimented the oracle early release jdk, openjdk 9. I made the > toolchains.xml file point t the correct java 9 paths. > > If it doesn't complain about not finding JDK=9, then it fails on this: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile > (default-compile) on project log4j-api-java9: Compilation failure > [ERROR] javac: invalid flag: --release > [ERROR] Usage: javac <options> <source files> > [ERROR] use -help for a list of possible options > > Other modules in the trunk build fine, but I want them all to build the way > they should. Any advice would be greatly apprecaited! > > Kenneth