First time deployment of war to tomcat does not work
Hi everybody,
i have the following problem (Intellij IDEA Ultimate 2018.1).
1) I import a Maven project and via the Module Settings I add another Maven project that is a direct dependency of the first one.
2) I create a Run Configuration for a local tomcat and configure it to deploy the exploded war of the first project.
3) I start the server, the project gets deployed, but everything is empty.
I already checked all paths, they are all correct.
If I then build the Maven project manually (either via a configuration, or directly with the maven cli), the sources get deployed correctly. But the dependency is never updated (until I build it manually again).
Is there some setting I am missing? Could you please help to find out what I am doing wrong?
Thank you very much,
Stefan
Please sign in to leave a comment.
Use Maven multiproject with the root pom.xml, import the root pom which defines the dependencies between the modules.
Make sure the artifact includes all the required dependencies, you either need to update it manually or reimport the project from Maven. See https://www.jetbrains.com/help/idea/artifacts.html.
Thank you for your response.
Unfortunately I still have to manually do a maven build before I can deploy it.