I finally have my application in IntelliJ and deploying to JBoss. I'd like to get hot deploy working but it looks like I need to understand how IntelliJ and JBoss interact.
When I build my project in IntelliJ and then start JBoss, the ear file does not appear in the deploy directory so I assume that there is some magic that IntelliJ does so that JBoss reads from a different folder. What is happening during this step?
Thanks :)
You can type cmd + shift + a ( or ctrl + shift + a on windows ) to access the action pop-up, then type something like add server and choose the 'server' option. This will bring you to the application servers panel of the preferences where you can add ( + ) the JBoss server.
To install and deploy the mid tier with JBoss Application Server, complete the following steps: Install JBoss Application Server. (For instructions, see the appropriate JBoss Application Server documentation.) Deploy the WAR file by either extracting the WAR file or using the JBoss Admin Console.
on the main toolbar or press Ctrl+Alt+S to open the Settings/Preferences dialog, and choose the Deployment page (you can access the same page by choosing Tools | Deployment | Configuration from the main menu).
I know this is an old and apparently answered question, but unfortunately the links provided in the accepted answer didn't give me the simple details I was looking for. For anyone also trying to understand how IntelliJ IDEA deploys your exploded war to JBoss without copying files to the deployments folder, here's what I've found while deploying locally from IDEA 14 (EAP) to JBoss 7.1.1.Final:
org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to mount deployment content
, Failed to process phase STRUCTURE of deployment
and java.io.FileNotFoundException
to name a few.Please refer to the documentation.
Basically, you need an exploded Artifact configuration with the directory name ending with .ear.
Build | Make performs hot deployment as well as Update action (which is configurable and can update only resources, resources and classes, optionally redeploy or restart the server).
Instead of copying your application to JBoss, IDEA runs it with appropriate parameters so that it uses Artifact directory instead. Configuration is very flexible and you can just change the artifact directory location to reside under JBoss directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With