Setup Tomcat and Maven in Intellij - Java EE
Setup Tomcat and Maven in Intellij
For those who wants to useIntelliJ IDE for Jave EE Web Development programming instead of Eclipse. If you are following this tutorial in Udemy https://github.com/in28minutes/JavaWebApplicationStepByStep you might find it using Eclipse. This tutorial is what we are going to reference with for this blog. We will shift it from Eclipse to IntelliJ.
As before I will keep this blog as simple as possible.
Let's start!
1.) Open IntelliJ, close any project you are working for now. You will see this new project window.
2.) Click on "Configure" with the gear icon below and then click "plugins".
3.) In the Installed tab, make sure that Maven Integration is checked.
4.) In the Marketplace tab search for Smart Tomcat and install it.
5.) Press ok and then create a new project. In the new project window select Maven. Click Next.
6.) Type in the GroupID and ArtifactID you wanted. Click Next and name the project. You can leave the project directory as is. Click Next.
7.) It will now create the project. A pop-up message will show telling you to import Maven Projects. Select Auto-Import.
8.) Copy the codes on this github page https://github.com/in28minutes/JavaWebApplicationStepByStep/blob/master/Step01.md . Ofcourse create first the files and the directories.
9.) Once done. Re-import Maven. Click on Maven on right corner. Click the recycle like icon. You can refer to the image above.
10.) Now let's configure run. Click on Run on the menus and click Run. A small box will show click on Edit configurations.
11.) A new window will appear. Click on the plus sign on the top corner and then select Smart Tomcat.
12.) Name the server and then click apply.
13.) Click on the plus sign again and then select Maven. Type "tomcat7:run" on the command line and press apply. You can now close this window.
14.) On the right corner you will now see this (refer in the below picture). Select on the drop down menu the maven run configuration we created. Click on the Run button near it. Wait till things work its magic and your server should now be running :)
Congratulations!
Now go to localhost:8080 and you should see something like the picture below. This shows that the server is running.
if you changed values in the code, stop and re-run the server. And of course reload the browser :)
This will, unlike said in the tooltip, will send you to my profile on steemit
Please upsteem and resteem :)
Follow me here https://steemit.com/@ranman09
Leave Setup Tomcat and Maven in Intellij - Java EE to:
Read more #programming posts
Best Posts From ranman09
We have not curated any of ranman09's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From ranman09
- I created a script to sort an Array using basic loops and conditions in Java
- I created a script to sort an Array using basic loops and conditions in Java
- Challenge yourself with this challenge trending in the Philippines - 50 Pesos Challenge
- Change Steemit profile picture without third party websites
- Setup Tomcat and Maven in Intellij - Java EE
- No Profile Settings on Steemit Settings [FIXED]
- Slow Intellij Idea Fix