使用Intellij社区建立Wildfly
是否可以使用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如Markswell所说,这是可行的。实际上,我发现这比预期的要容易。
一旦下载并解开野生蝇,要运行Wildfly,您只需要将战争文件添加到Wildfly Home上的 \ standalone \ deployment 中(我使用了爆炸的战争),然后只运行 \ \ \ \ \ \ \ \ bin \ standalone.bat (或.sh如果您在Linux发行版上)。
如果您想从社区版本进行调试,只需在\ bin \ standalone.conf.bat上删除行:(
仅在开始时删除 rem ),
然后在Intellij上,您只需要跑步 - >附加到进程...然后选择您的Java进程(具有端口8787的过程)。
PD:如果您将配置(例如添加调试功能)更改为重新加载Wildfly:
一旦连接到CLI,就可以键入:
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:
(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:
And once you are connected to CLI just type:
这是不可能的,但是我已经为此自动化创建了一个脚本,如果您使用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