Upgrade netbeans to JEE 8

醉酒当歌 提交于 2019-12-14 03:54:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!