You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Thomas Zimmermann (JIRA)" <ji...@apache.org> on 2018/02/03 22:07:00 UTC
[jira] [Created] (NETBEANS-353) Support maven.compiler.release in
pom.xml
Thomas Zimmermann created NETBEANS-353:
------------------------------------------
Summary: Support maven.compiler.release in pom.xml
Key: NETBEANS-353
URL: https://issues.apache.org/jira/browse/NETBEANS-353
Project: NetBeans
Issue Type: Improvement
Components: projects - Maven
Affects Versions: 9.0
Reporter: Thomas Zimmermann
Attachments: maven-compiler-release-flag.zip
I am using incubator-netbeans-release-205-on-20180202.
Java 9 added the _[--release|[http://openjdk.java.net/jeps/247]]_ flag to javac, the maven-compiler-plugin already supports this: [https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#release]
Right now, NetBeans uses _maven.compiler.source_ (and possibly _maven.compiler.target_ ?_)_ to determine the source level in the Editor. It would be nice to have support for _maven.compiler.release_ as well, since that now seems to be the preferred way to specify the source level going forward.
I tried this new flag because I saw Robert Scholte recommending it: [https://youtu.be/tHTmFlVAyAc?t=1195]
Attached is a trivial maven project that shows errors in NetBeans but compiles fine when invoking maven directly.
P.S.: I also want to thank you all for your work on NetBeans, it's very stable and intuitive to get started with. I'm not a power user, but I haven't encountered any issues with the snapshot version so far.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists