使用Intellij社区建立Wildfly

发布于 2025-01-23 04:19:51 字数 115 浏览 0 评论 0原文

是否可以使用Intellij Community版本或仅在最终设置Wildfly Server?

我找到了许多教程,解释了如何使用Intellij Ultimate建立Wildfly,但与社区版本无关。

Is it possible to set up WildFly server with IntelliJ community version or only in ultimate?

I have found many tutorials explaining how to set up WildFly with IntelliJ ultimate but nothing about community version.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

栖迟 2025-01-30 04:19:51

正如Markswell所说,这是可行的。实际上,我发现这比预期的要容易。

一旦下载并解开野生蝇,要运行Wildfly,您只需要将战争文件添加到Wildfly Home上的 \ standalone \ deployment 中(我使用了爆炸的战争),然后只运行 \ \ \ \ \ \ \ \ bin \ standalone.bat (或.sh如果您在Linux发行版上)。

如果您想从社区版本进行调试,只需在\ bin \ standalone.conf.bat上删除行:(

set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

仅在开始时删除 rem ),

然后在Intellij上,您只需要跑步 - >附加到进程...然后选择您的Java进程(具有端口8787的过程)。

PD:如果您将配置(例如添加调试功能)更改为重新加载Wildfly:

bin\jboss-cli.bat --connect

一旦连接到CLI,就可以键入:

:reload

As markswell said, It's doable. In fact, I found it was easier than expected.

Once you have downloaded and unziped your wildfly, to run the wildfly you just need to add your wars files into \standalone\deployment on wildfly home (I used exploded wars) and then just run \bin\standalone.bat (or .sh if you are on linux distro).

In case you want to debug from your community version, just uncomment on \bin\standalone.conf.bat the line:

set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

(just by removing the rem at the beginnning)

And then, on Intellij you just need to do Run -> Attach to Process... and then select your java process (the one with port 8787).

PD: In case you are changing configs (like adding debug feature) to reload wildfly:

bin\jboss-cli.bat --connect

And once you are connected to CLI just type:

:reload
星星的轨迹 2025-01-30 04:19:51

这是不可能的,但是我已经为此自动化创建了一个脚本,如果您使用Linux debian/ubuntu发行版,则可以使用:
https://

Intellij社区并加剧./intellij_wildfly_integration.sh,然后将debug配置设置为图像中的示例,在所有更改以测试您再次运行脚本之后。

它正在构建和部署战争文件中

It's no possible natively, but I have created a script to this automation, if you use a linux debian/ubuntu distro you can use that:
https://gist.github.com/markswell/6946a2af38b1fe865d12f50027af8310

You can open the terminal of intelliJ community and to exacute ./intellij_wildfly_integration.sh then to set debug configuration as example on images, after all change to test you run script again.

It's build and deploy the war file into your wildfly

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文