For a clearer explanation - If you look at the parent pom you will notice that there are two executions within the compiler plugin. The first is the default compile that excludes module-info.java, I have no idea why they decided to have this file have a .java extension since the file name seems to be illegal in prior releases and the syntax is unlike any other Java constructs. Second the Java 9 compiler is called to compile the module-info.java. The Java 9 compile runs in the process classes phase, which is important because the Java 9 compile MUST run after the maven bundle plugin as OSGi will barf on module-info.class.
Next, if you look at the pom for the API module you will see that the default compile excludes a few more classes as these will only compile with Java 9. The Java 9 compile then only compiles these classes. Finally, log4j-core actually invokes the compiler 3 times. The first will compile everything except for module-info.java, the second will run the annotation processor, and the third will compile module-info.java. Ralph > On May 4, 2017, at 8:36 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: > > This is documented in src/site/markdown/build.md and in BUILDING.md. If you > feel the wording can be improved feel free to update it. > > Ralph > >> On May 4, 2017, at 8:32 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: >> >> I run “mvn clean install” from the command line. I have Java 7, 8 and 9 >> installed on my computers. Java 8 happens to be the default on my work >> computer and Java 7 is the default on the computer where I release Log4j >> from. I have toolchains configured in ~/.m2/toolchains.xml with >> >> <?xml version="1.0" encoding="UTF8"?> >> <toolchains> >> <!-- JDK toolchains --> >> <toolchain> >> <type>jdk</type> >> <provides> >> <version>1.7</version> >> <vendor>sun</vendor> >> </provides> >> <configuration> >> <jdkHome>/Library/Java/JavaVirtualMachines/java7/Contents/Home</jdkHome> >> </configuration> >> </toolchain> >> <toolchain> >> <type>jdk</type> >> <provides> >> <version>1.8</version> >> <vendor>sun</vendor> >> </provides> >> <configuration> >> <jdkHome>/Library/Java/JavaVirtualMachines/java8/Contents/Home</jdkHome> >> </configuration> >> </toolchain> >> <toolchain> >> <type>jdk</type> >> <provides> >> <version>9</version> >> <vendor>sun</vendor> >> </provides> >> <configuration> >> <jdkHome>/Library/Java/JavaVirtualMachines/java9/Contents/Home</jdkHome> >> </configuration> >> </toolchain> >> >> <!-- other toolchains --> >> </toolchains> >> >> >> >>> On May 4, 2017, at 8:13 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: >>> >>> This has been reported as >>> https://issues.apache.org/jira/browse/SUREFIRE-1265 >>> <https://issues.apache.org/jira/browse/SUREFIRE-1265>. The good news is >>> that it is fixed. The bad news is that version 2.20.1 has not been released >>> yet. >>> >>> Ralph >>> >>>> On May 4, 2017, at 7:45 PM, Ralph Goers <ralph.go...@dslextreme.com> wrote: >>>> >>>> I get the same thing on my Mac when building only with Java 9. I normally >>>> build with Java 8 or 7 as the default JDK and use toolchains for the Java >>>> 9 specific stuff, so all the tests are run in Java 7 or 8 - except when I >>>> specifically wanted to test the StackWalker support. I tested that through >>>> a benchmark project I have at GitHub. >>>> >>>> In any case, it is failing because java.sql.SQLException is in the >>>> java.sql module, not java.base. I haven’t played around with Java 9 enough >>>> yet to know how to get that to be included in the surefire plugin. >>>> >>>> Ralph >>>> >>>>> On May 4, 2017, at 5:46 PM, Gary Gregory <garydgreg...@gmail.com> wrote: >>>>> >>>>> When I build with Java 9 EA 167 and Maven I get: >>>>> >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Reactor Summary: >>>>> [INFO] >>>>> [INFO] Apache Log4j 2 ..................................... SUCCESS [ >>>>> 2.492 s] >>>>> [INFO] Apache Log4j API ................................... SUCCESS [ >>>>> 24.712 s] >>>>> [INFO] Apache Log4j Core .................................. FAILURE [ >>>>> 51.165 s] >>>>> [INFO] Apache Log4j Core Integration Tests ................ SKIPPED >>>>> [INFO] Apache Log4j 1.x Compatibility API ................. SKIPPED >>>>> [INFO] Apache Log4j SLF4J Binding ......................... SKIPPED >>>>> [INFO] Apache Log4j to SLF4J Adapter ...................... SKIPPED >>>>> [INFO] Apache Log4j Commons Logging Bridge ................ SKIPPED >>>>> [INFO] Apache Log4j Flume Bridge .......................... SKIPPED >>>>> [INFO] Apache Log4j Web ................................... SKIPPED >>>>> [INFO] Apache Log4j Tag Library ........................... SKIPPED >>>>> [INFO] Apache Log4j JMX GUI ............................... SKIPPED >>>>> [INFO] Apache Log4j Samples ............................... SKIPPED >>>>> [INFO] Apache Log4j Samples: Flume - Common ............... SKIPPED >>>>> [INFO] Apache Log4j Samples: Flume - Remote ............... SKIPPED >>>>> [INFO] Apache Log4j Samples: Flume - Embedded ............. SKIPPED >>>>> [INFO] Apache Log4j Samples: Configuration ................ SKIPPED >>>>> [INFO] Apache Log4j Samples: LoggerProperties ............. SKIPPED >>>>> [INFO] Apache Log4j Scala 2.11 wrapper for Log4j API ...... SKIPPED >>>>> [INFO] Apache Log4j Samples: Scala API .................... SKIPPED >>>>> [INFO] Apache Log4j OSGi .................................. SKIPPED >>>>> [INFO] Apache Log4j BOM ................................... SKIPPED >>>>> [INFO] Apache Log4j NoSQL ................................. SKIPPED >>>>> [INFO] Apache Log4J Performance Tests ..................... SKIPPED >>>>> [INFO] Apache Log4j Streaming Interface ................... SKIPPED >>>>> [INFO] Apache Log4j JUL Adapter ........................... SKIPPED >>>>> [INFO] Apache Log4j Liquibase Binding ..................... SKIPPED >>>>> [INFO] Apache Log4j Scala 2.10 wrapper for Log4j API ...... SKIPPED >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] BUILD FAILURE >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [INFO] Total time: 01:20 min >>>>> [INFO] Finished at: 2017-05-04T17:44:33-07:00 >>>>> [INFO] Final Memory: 40M/135M >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> [ERROR] Failed to execute goal >>>>> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) >>>>> on project log4j-core: Execution default-test of goal >>>>> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: >>>>> java.lang.NoClassDefFoundError: java/sql/SQLException: >>>>> java.sql.SQLException -> [Help 1] >>>>> >>>>> Using: >>>>> >>>>> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; >>>>> 2017-04-03T12:39:06-07:00) >>>>> Maven home: C:\Java\apache-maven-3.5.0\bin\.. >>>>> Java version: 9-ea, vendor: Oracle Corporation >>>>> Java home: C:\Program Files\Java\jdk-9 >>>>> Default locale: en_US, platform encoding: Cp1252 >>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" >>>>> >>>>> Gary >>>>> >>>>> On Thu, May 4, 2017 at 4:51 PM, Matt Sicker <boa...@gmail.com> wrote: >>>>> >>>>>> If you figure out how to set it up in Eclipse, please share your >>>>>> instructions. I'm guessing you're not the only Eclipse user here. >>>>>> >>>>>> On 4 May 2017 at 18:17, Gary Gregory <garydgreg...@gmail.com> wrote: >>>>>> >>>>>>> On Thu, May 4, 2017 at 4:06 PM, Gary Gregory <garydgreg...@gmail.com> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi all, >>>>>>>> >>>>>>>> I am trying to compile our Java trunk in Eclipse with Eclipse 4.7M6 and >>>>>>>> the Java 9 BETA support. I get a compile error in >>>>>>>> org.apache.logging.log4j.util.StackWalkerStackLocator because >>>>>>>> StackLocator is not found. Where does that interface live? >>>>>>>> >>>>>>> >>>>>>> Never mind, I see it. Now if I could just get Eclipse to see all of the >>>>>>> java files in log4j-api... grr... >>>>>>> >>>>>>> Gary >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> G >>>>>>>> >>>>>>>> On Thu, May 4, 2017 at 2:58 PM, Gary Gregory <garydgreg...@gmail.com> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Does anyone have trunk set up in Eclipse? >>>>>>>>> >>>>>>>>> I'm having a hell of a time getting the current trunk to build in >>>>>>>>> Eclipse... >>>>>>>>> >>>>>>>>> Gary >>>>>>>>> >>>>>>>>> -- >>>>>>>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>>>>>>> Java Persistence with Hibernate, Second Edition >>>>>>>>> <https://www.amazon.com/gp/product/1617290459/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >>>>>>>>> >>>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t= >>>>>> garygregory-20&l=am2&o=1&a= >>>>>>> 1617290459> >>>>>>>>> JUnit in Action, Second Edition >>>>>>>>> <https://www.amazon.com/gp/product/1935182021/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de4 >>>>>> 18%22 >>>>>>>> >>>>>>>>> >>>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t= >>>>>> garygregory-20&l=am2&o=1&a= >>>>>>> 1935182021> >>>>>>>>> Spring Batch in Action >>>>>>>>> <https://www.amazon.com/gp/product/1935182951/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& >>>>>>> linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% >>>>>>> 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >>>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t= >>>>>> garygregory-20&l=am2&o=1&a= >>>>>>> 1935182951> >>>>>>>>> Blog: http://garygregory.wordpress.com >>>>>>>>> Home: http://garygregory.com/ >>>>>>>>> Tweet! http://twitter.com/GaryGregory >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>>>>>> Java Persistence with Hibernate, Second Edition >>>>>>>> <https://www.amazon.com/gp/product/1617290459/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >>>>>>>> >>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1617290459> >>>>>>>> JUnit in Action, Second Edition >>>>>>>> <https://www.amazon.com/gp/product/1935182021/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de4 >>>>>> 18%22 >>>>>>>> >>>>>>>> >>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1935182021> >>>>>>>> Spring Batch in Action >>>>>>>> <https://www.amazon.com/gp/product/1935182951/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& >>>>>>> linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% >>>>>>> 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >>>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1935182951> >>>>>>>> Blog: http://garygregory.wordpress.com >>>>>>>> Home: http://garygregory.com/ >>>>>>>> Tweet! http://twitter.com/GaryGregory >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>>>>> Java Persistence with Hibernate, Second Edition >>>>>>> <https://www.amazon.com/gp/product/1617290459/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >>>>>>> >>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1617290459> >>>>>>> JUnit in Action, Second Edition >>>>>>> <https://www.amazon.com/gp/product/1935182021/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021& >>>>>>> linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de4 >>>>>> 18%22 >>>>>>>> >>>>>>> >>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1935182021> >>>>>>> Spring Batch in Action >>>>>>> <https://www.amazon.com/gp/product/1935182951/ref=as_li_ >>>>>>> tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951& >>>>>>> linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B% >>>>>>> 7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >>>>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a= >>>>>>> 1935182951> >>>>>>> Blog: http://garygregory.wordpress.com >>>>>>> Home: http://garygregory.com/ >>>>>>> Tweet! http://twitter.com/GaryGregory >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Matt Sicker <boa...@gmail.com> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>>> Java Persistence with Hibernate, Second Edition >>>>> <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >>>>> >>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> >>>>> JUnit in Action, Second Edition >>>>> <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> >>>>> >>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> >>>>> Spring Batch in Action >>>>> <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >>>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> >>>>> Blog: http://garygregory.wordpress.com >>>>> Home: http://garygregory.com/ >>>>> Tweet! http://twitter.com/GaryGregory >>>> >>>> >>>> >>> >> >