-
-
Save jamessom/957a668aaf573d26e89d958b2f61afa9 to your computer and use it in GitHub Desktop.
To integrate Intellij Idea community with wildfly server just put this file into root path of application and run with command ./intellij_wildfly_integration.sh. For debug in your Intellij Idea Community enable debug of wildfly into standalone.xml file and create a configuration of type “Remote JVM Debug” and attach in “Run/Attach to process”.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mvn clean package -DskipTests | |
WILDFLY_PATH=/opt/wildfly-26.1.1.Final | |
$WILDFLY_PATH/bin/standalone.sh & | |
ARTIFACT=$(ls target/*.war | sed "s/target\///g") | |
$WILDFLY_PATH/bin/jboss-cli.sh -c --controller=127.0.0.1:9990 --command="undeploy $ARTIFACT" | |
rm $WILDFLY_PATH/standalone/deployments/$ARTIFACT* | |
cp target/$ARTIFACT $WILDFLY_PATH/standalone/deployments/ | |
$WILDFLY_PATH/bin/jboss-cli.sh -c --controller=127.0.0.1:9990 --command="deploy --force $WILDFLY_PATH/standalone/deployments/$ARTIFACT" | |
echo "Deploy it's done: $ARTIFACT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment