简体   繁体   English

如何使用服务器基本目录和设置在 IntelliJ 中配置 JBoss 服务器。xml

[英]How to configure JBoss server in IntelliJ with server base dir and a settings.xml

I'm trying to switch from Eclipse to IntelliJ Ultimate.我正在尝试从 Eclipse 切换到 IntelliJ Ultimate。 But I have trouble configuring an application server.但是我在配置应用程序服务器时遇到了麻烦。

What I have:我有的:

  • IntelliJ IDEA Ultimate 2020.3 IntelliJ IDEA Ultimate 2020.3
  • a JavaEE application running on JBoss EAP 7.1在 JBoss EAP 7.1 上运行的 JavaEE 应用程序

What I already achieved:我已经取得的成就:

  • Adding an application server in Settings -> Build, Execution, Deployment -> Application Servers: I added a JBoss Server and specified the JBoss home directory在 Settings -> Build, Execution, Deployment -> Application Servers 中添加应用服务器:我添加了一个 JBoss Server 并指定 JBoss 主目录
  • Adding a Run/Debug Configuration where I chose the JBoss server, added the artifacts which should be deployed, added some VM options, specified the JRE添加运行/调试配置,我选择 JBoss 服务器,添加应部署的工件,添加一些 VM 选项,指定 JRE

Where I am stuck: Here are the things I miss from the Eclipse configuration, and I can't find any documentation or help about that:我被困在哪里:这是我从 Eclipse 配置中错过的东西,我找不到任何文档或帮助:

  • In Eclipse, there is a "server runtime environment" which specifies a "server base directory" and a "configuration file" (settings.xml) in addition to the server home directory and JRE.在 Eclipse 中,除了服务器主目录和 JRE 之外,还有一个指定“服务器基本目录”和“配置文件”(settings.xml) 的“服务器运行时环境”。 Where can I find these settings in IntelliJ?在 IntelliJ 中哪里可以找到这些设置?
  • Alternatively, there is the "launch configuration" in Eclipse, where you can define "program arguments" in addition to VM arguments.或者,在 Eclipse 中有“启动配置”,除了 VM arguments 之外,您还可以在其中定义“程序参数”。 These also seem to set the server config and base dir.这些似乎也设置了服务器配置和基本目录。

Any help is highly appreciated.非常感谢任何帮助。 Thanks a lot!非常感谢!

Instructions from From IntelliJ site:来自 IntelliJ 站点的说明:

Application Servers 应用服务器

Application server run configurations 应用服务器运行配置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM