user1167753
user1167753

Reputation: 801

Set up WildFly with IntelliJ community

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.

Upvotes: 2

Views: 7610

Answers (2)

David DRM
David DRM

Reputation: 21

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

Upvotes: 1

markswell menezes
markswell menezes

Reputation: 1

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

Upvotes: 0

Related Questions