Re: build maven project without setting compiler source and target

2020-02-17 Thread Thorsten Heit
Hi Matt, > So I guess it's an issue with NetBeans then a) using such an old version > of maven b) not handle compiler version and minium required > source/target correctly. > Guess I just set it to 8, as that's the oldest jdk/vm I still have lay > around, and don't bother anymore about it. > Th

Re: build maven project without setting compiler source and target

2020-02-17 Thread java-crypto
So I guess it's an issue with NetBeans then a) using such an old version of maven b) not handle compiler version and minium required source/target correctly. Guess I just set it to 8, as that's the oldest jdk/vm I still have lay around, and don't bother anymore about it. Thanks for your replies

Re: Re: build maven project without setting compiler source and target

2020-02-17 Thread Thorsten Heit
Hi, > Scanning for projects... (...) > - > COMPILATION ERROR : > - > Source option 5 is no longer supported. Use 6 or later. > Target option 1.5 is no longer supported. Use 1.6

Re: build maven project without setting compiler source and target

2020-02-17 Thread Thomas Broyer
You seem to mistake the version of the JDK you're using with the version of the Java language that your source files are written in and the JRE they depend on (in terms of available API). You can very well compile Java 8 sources with a JDK 11 or 13. If you share your project between machines where

Re: build maven project without setting compiler source and target

2020-02-17 Thread java-crypto
Sorry for the late reply, but I did some testing to make sure it wasn't me made a stupid mistake. So, when I clone my current repo and execute an "mvn compile" or "mvn package" on it without messing around with the pom either all works fine or I get a failure because the set version is higher th