Build from Intellij to deploy on WebSphere Liberty profile
I am pretty much trying to figure out this stuff on my own. Most of the shop uses Eclipse so can't get much help.
I have a project with 3 modules, A, B and C. Project C's .war file is what gets deployed on the server (WLP). A and B are dependencies of C.
Within Intellij I have configured the WebSphere plug-in and told it that the .war file corresponding to project C is the deployable.
I mostly work in project A. Currently this is what I do.
I make changes to A.
I go to the command line to the directory for A and do
mvn clean install
then I change directory to project C and repeat the command.
Then I come back into IntelliJ and start the server and wait for it to say server started and .war deployed. Afterwards I use the Swagger plugin for Chrome to execute my services. I am able to debug via Intellij and set breakpoints and so on.
But I feel I should be able to do all this build and deploy from w/in the tool.
I want to be able to make code changes in project A and then just restart the server so it not only compiles A, it also builds C to pick up the changes and then deploys to the server.
Please would you give me detailed instructions or point me to the right pages to accomplish this?
Please sign in to leave a comment.
Please refer to https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html .
You need to configure an artifact for deployment in IntelliJ IDEA. Exploded artifacts can be updated without restarting the server.
Also check https://www.jetbrains.com/help/idea/artifacts.html. Deploy artifact that is built by IntelliJ IDEA, not the one built by Maven. This way you can skip the 'mvn clean install' step.
a complete guide of that with screenshots would be great!
There is an example in Your first Java EE application tutorial. It describes the Glassfish server but all the general procedures are similar.