I have a simple JavaEE Web Application which runs just fine from intellij
on a tomcat server(v. 8.5.15)
.
I'd like to manage dependencies with maven and so when I add a pom file with the tomcat7-maven-plugin
and run the web-project with tomcat7:run i get a 404 when i try to visit localhost:8080/index.jsp
.
It seems as though tomcat7:run
changes my Web Ressource Directory(where it finds my WEB-INF
folder and my index.jsp
file) to src/main/webapp
- which doesn't exist. Therefore it can't find the index.jsp
. But I can't find out how/why the directory gets changed - has anybody here got a clue about?