Intellij Idea 2020社区版中的Glassfish 5Payara Server

问题描述

我正在学习有关Payara Server 5.2020.4IntelliJ Version: 2020.2.1.的教程

导师正在使用IntelliJ Ultimate ,而我只有IntelliJ Community

我知道Netbeans / Eclipse的存在已经启用,并且我正在使用它们。

但是,我仍然有疑问,我想解决它。

是否可以通过pom.xmlanswer这样的Glassfish/Payara服务器添加对Tomcat的支持

然后如何做到?

谢谢。

解决方法

是的,可以使用maven将Payara Server与任何IDE集成。

可以使用通用的Cargo maven插件来实现,该插件支持许多应用程序服务器,包括Payara Server。您可以在Payara博客中查看操作方法:

https://blog.payara.fish/deploying-to-payara-server-using-the-maven-cargo-plugin

以及此处Cargo插件中的Payara Server支持文档:

https://docs.payara.fish/community/docs/5.2020.4/documentation/user-guides/using-the-maven-cargo-plugin.html