Can you show the actual error message and give a concrete project? Normally 
Maven works with not specifying target/source as long as your JDK is recent 
enough. (But it's not ways a good idea, it's better to specify the properties 
(IDEs normally read them)


--
http://bernd.eckenfels.net
________________________________
Von: java-cry...@cryptearth.de <java-cry...@cryptearth.de>
Gesendet: Monday, February 17, 2020 4:27:16 AM
An: users@maven.apache.org <users@maven.apache.org>
Betreff: build maven project without setting compiler source and target

So as I just got new into using Netbeans someone on its list explained
me, that it's just a gui wrapper around maven and it's adviced to get
the basics of maven to correctly use netbeans.
Ok, so as I just used a simple editor and a terminal it didn't mattered
wich version I compiled with or for in the past as I ran the class with
the same vm I compiled them with. So, the I thought I could just ommit
the setting - but maven just fails with an error that no source/target
version was specified. So I had them re-add by re-apply the project
settings.
Is there a way I could tell the compiler plugin just to ignore the
version but also to ignore if it's missing and just compile it with
whatever version I ran maven with?
It's basically: I use different systems all with different jdk installed
- so when just clone the most recent version from github I always have
to set the correct version manual as netbeans doesn't seem to be handle
that by itself - and I could find an option to just get rid of it at
all.

Thanks in advance,

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to