Although, I guess the target is set to 11 in the regular maven build on 11+ currently, so depending on what the project SDK setting actually governs possibly you do need to. Could also be largely irrelevant though if you dont use 11 APIs and aren't creating jar output from it for running elsewhere.
On Mon, 22 Jun 2020 at 09:26, Robbie Gemmell <[email protected]> wrote: > > Did you actually have to change the project SDK to 11? I don't think > you should need to, and indeed if not perhaps you shouldn't since the > source level is still 8. > > The main issue is Idea forcing use of the javac --release flag by > default since the build won't work with that in place, which is why > the build itself doesn't set it. > > On Sat, 20 Jun 2020 at 21:45, Domenico Francesco Bruscino > <[email protected]> wrote: > > > > Hi Krzysztof, > > > > I was getting the same error using Intellij IDEA because my IDE runtime is > > Java 11 while the project SDK was Java 1.8. > > I fixed this error changing the project SDK to Java 11 and disabling the > > `Use --release option` from the Java Compiler settings of my IDE. > > You can get more details reading the last posts of the topic > > `Building-on-Java-11` from the developer mailing list: > > http://activemq.2283324.n4.nabble.com/Building-on-Java-11-tp4756807.html. > > > > Regards, > > Domenico > > > > > > Il giorno sab 20 giu 2020 alle ore 22:13 Justin Bertram > > <[email protected]> > > ha scritto: > > > > > Are you running the test from the command line or from an IDE? > > > > > > > > > Justin > > > > > > On Sat, Jun 20, 2020 at 2:31 PM Krzysztof <[email protected]> wrote: > > > > > > > Hi Guys, > > > > > > > > When I try to run tests using Artemis current head, I'm getting the > > > > following error: > > > > > > > > Error:java: invalid flag: > > > > --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED > > > > > > > > Any idea what should I do to make it work again? > > > > > > > > Thanks, > > > > Krzysztof > > > > > > >
