Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying external wars in Tomcat via IntelliJ Idea

I have a project that is dependent on two war files being deployed to Tomcat. So every time I want to test it, I need to build an artifact and manually deploy it alongside the two wars. Is there a way to somehow add those war files to my Idea project so they can be deployed automatically by pressing Shift+F10.

I would deploy it manually, but I have several people working on the project and it would greatly simplify the communication.

Wars are external and they have no sources, so creating new modules/artifacts out of their source is out of the question.

Could you help me?

like image 573
SMSk Avatar asked Mar 10 '15 11:03

SMSk


1 Answers

Since the link on the accepted answer is dead, here is the process, step by step (I'm using Intellij 14):

1) Select Run/Edit Configuration

2) If no Tomcat Run Config exists yet, create one

3) Select the Tomcat run config just created, on Deployment tab, under Deploy at server startup section, click the "+" (right sidebar), select External source, and select your war file.

like image 57
Hoang Phuoc Truong Avatar answered Oct 16 '22 15:10

Hoang Phuoc Truong