I am deploying an application from IntelliJ IDEA to the local Tomcat server. I thought the apps you deploy are placed in the webapps
folder, however it does not turn up there.
Is this correct? Where is it?
I am deploying an application from IntelliJ IDEA to the local Tomcat server. I thought the apps you deploy are placed in the webapps
folder, however it does not turn up there.
Is this correct? Where is it?
Just for reference, the corresponding folder on a mac (for IntelliJ 13) is:
/Users/<username>/Library/Caches/IntelliJIdea13/tomcat/
Yes, If you are using IntelliJ IDEA the application does not turn up on Tomcat webapps
directory. Your artifacts are in directory, for example:
${dir.to.idea.project}\YourWebApp\out\artifacts
This is default directory created by IntelliJ.
Tomcat configuration is in the different folder. I am using windows 7. So it is:
C:\Users\User\.IntelliJIdea10\system\tomcat\YourApplicationName
If you are using Intellij IDEA your artifacts are deployed directly from output directory: ${project.dir}\${web.module}\out\artifacts
or ${project.dir}\${web.module}\target
if you're using Maven and follow Standard Directory Layout.
Tomcat configuration is in different folder:
Mac: /Users/${user}/Library/Caches/IntelliJIdea${version}/tomcat/ Linux: /home/${user}/.IntelliJIdea${version}/system/tomcat/ Windows: C:\Users\${user}\AppData\Local\JetBrains\IntelliJIdea${version}\tomcat
From IntelliJ 2020 onwards the Tomcat configuration and work directories have moved to:
C:\Users\${user}\AppData\Local\JetBrains\IntelliJIdea${version}\tomcat
If you're following the standard maven approach, which is highly recommended, then your output goes to the target
directory, not out
. With the maven approach you'll probably have multiple modules under your project root, and the target
directory will be found under each module. The web application is then built into an exploded directory named after the module, but with .war
as an extension. So, you have:
project/module/target/webapp.war
The server log output the env variable "CATALINA_BASE" which contains the exploaded location
I am new to IntelliJ IDEA. In my config. I add a local tomcat server. My tomcat container is run the project's target folder.
${your project's path}\target\ ${your project's name}
In this path ,you will find the file that IDEA has build. And tomcat server would run this folder.