By server console panel; By manually having the war file in specific folder of server. As far as I can tell, there is no such functionality in IntelliJ. Trouble deploying a War file from IntelliJ to a local tomcat server and having it work. In the New Project dialog, select Java Enterprise.For this tutorial, use Java 1.8 as the project SDKs and leave other settings by default: Maven as the build tool and JUnit as the test runner. Here, -c is used to create file, -v to generate the verbose output and -f to specify the arhive file name. In the Run/Debug Configurations dialog, click … Finally, we tell maven to package the project in to WAR. Proper enterprise applications are packaged into EAR files that can contain both WAR and JAR files. Now we should have a war file in the target folder. war. Supports bytecode from Java 1 to Java 7. From the main menu, select File | New | Project.. This plugin is not currently maintained as Jetbrains IntelliJ IDEA has since a few years his own java decompiler. There are two ways to deploy the war file. We can deploy this war to JBoss or Tomcat server. Create a run configuration. Step 3 – Run mvn clean install command which will craete war file. If you have a Spring Boot Maven project, refer to the Spring section. Configure Packaging to WAR. Let's see how to do this in IntelliJ IDEA. Now we have a war file. Select Java as your project language and click Next.. I couldn't do it via Intellij, so I found this and it is super easy to generate the package via ./gradlew desktop:dist, I know it is not related with the question, but it really helped me in the task of creating the jar file. Hi. Press Ctrl+Shift+A, find and run the Edit Configurations action. We have a separate tutorial which explains how to deploy the war file in JBoss and Tomcat. The version of Java specified in the pom.xml file overrides the version specified in the JDK for Importer option, located in the Maven settings. This article shows you how to run or debug a web application on Tomcat server, using IntelliJ IDEA. IntelliJ IDEA creates a Maven project with the pom.xml file that includes compiler and target versions of Java, dedicated Maven tool window, and all the necessary dependencies to start you work. Then try to build your project using: mvn package For Gradle Project, please see this Packaging executable jar and war files in Gradle link to configure .gradle file to build war file. As a workaround you have to: 1. Java. Note Unlike Eclipse IDE, there is always a ‘server view’ to configure the add server, IntelliJ do things differently, you need to add an “artifact (war file)” first, then only the “server view” will be displayed at the bottom. Sometimes you just want to create a quick web project in IntelliJ IDEA, and you would use their wizard and with web or Java EE module as starter project. In the Libraries and Frameworks list, select the Web Profile specification and click Next. The * (asterisk) symbol signifies that all the files of this directory (including sub directory).. How to deploy the war file? Create / enable "Create a web facet war file" on a web facet 2. In case if you face any compiler related issue visit this post. I am working on a simple Spring Boot Application in IntelliJ, which I have configured to be a War file, and have made a Controller class where I use the @Controller, @ResponseBody and @GetMapping annotations. For Maven projects, you can use IntelliJ IDEA to run the JAR file. Latest IntelliJ versions not supported. Build the module containing the web facet 3. disable "Create a web facet war file" Definitely, not very UI friendly. – igrossiter Sep 24 '14 at 12:56 In the Project tool window, right-click your module and select Add Framework Support. Decompile any 'class' file in jars or not inside IntelliJ IDEA. In your pom.xml, change the attribute value for packaging from jar to war.