Tomcat 7 maven plugin additional context on tomcat7:run

Posted by pater on Stack Overflow See other posts from Stack Overflow or by pater
Published on 2012-08-30T11:58:26Z Indexed on 2012/08/31 9:38 UTC
Read the original article Hit count: 247

When I run my web app inside eclipse using tomcat 7 maven plugin, I want an additional context to be deployed to tomcat. On the production enviroment this context is mapped to a directory outside tomcat dir using a context configuration

 <Context path="/userimages" docBase="C:/test/userimages">
 </Context>

And by this way is available in

http://wwww.myhost.com/userimages/test.jpg

How I achive the same on the development enviroment of the webapp (eclipse, tomcat7 maven plugin)? In other words I want the contents of that folder to be accessible through

http://localhost:8080/userimages

or

http://localhost:8080/myapp/userimages

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about tomcat