How to run Maven tomcat7 as exploded? I ‘m trying to run web application which read dynamic files form same context folder.
I have tried to use this :
mvn tomcat7:run
And put in some local file (after tomcat start) into same contex e.g : C:\Project1\target\web\yada_yada.jpg but when access to url http://localhost:8080/Project1/yada_yada.jpg seems the added file not found.
Managed to get hints from this post
mvn tomcat7:run – How does it work?.
For
mvn tomcat7:runthewarSourceDirectorypoints to src by default (not target). Now overwritewarSourceDirectorywill give an exploded version alike.