0

I want to know how intellij maps an artifact created in the 'out' folder to the webapps of tomcat.

My project is deployed successfully and I am able to see it in the browser. But when I check the webapps folder of the tomcat, I am not able to see my app folder.

I wanted to know how is intellij deploying to tomcat without moving the files to the webapps folder.

I found this question that is similar to mine but the answer does not mention the process.

I read about the different ways that tomcat deploys but couldn't get how exactly intellij is doing it.

Harke
  • 1,279
  • 4
  • 25
  • 30
  • They do it the other way around by changing the tomcat config to reference the webapp in your build. – No3x Jul 27 '21 at 21:58
  • 1
    My answer at https://stackoverflow.com/a/7702077/104891 explains how it works. What specific problem are you trying to solve? – CrazyCoder Jul 27 '21 at 22:10
  • @CrazyCoder Is the 'temporary directory' that you mentioned in the answer in the link, the 'out' directory where the artifact is created? – Harke Jul 27 '21 at 22:41
  • The temporary directory would be under the System directory: https://www.jetbrains.com/help/idea/tuning-the-ide.html#system-directory where IntelliJ IDEA places the modified Tomcat configuration and it's used for CATALINA_BASE. The modified configuration instructs Tomcat to deploy the artifact directly from the artifact output directory that you can see at https://www.jetbrains.com/help/idea/artifacts.html. Does it make sense? – CrazyCoder Jul 27 '21 at 22:43

0 Answers0