问题
My question is very simple. How do I upgrade Netbeans 8.2 to use Jave EE 8?
I have installed a plain NB 8.2 and glassfish 5. Java 1.8 and tried with java 9.
I have installed the GF 5 server to be controlled through NB. When I create a new Maven web application project i can choose Java EE 7 as runtime.
I have downloaded the nightly build too to try is, but I see the same result.
Is there a cook book or something that describes how to upgrade the entire system to the latest version?
I have searched high and low without any results.
I have check the Java EE 8 tutorial but it dosn't expalin it either.
Kim
回答1:
Netbeans does not currently directly support Java EE 8, however you can get the same result by manually setting your project to depend on Java EE 8 apis. This can be done if you are using maven by adding it as a dependency to your pom.xml:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
来源:https://stackoverflow.com/questions/46528103/upgrade-netbeans-to-jee-8