On 7/12/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
I deployed my webapp by pointing the tomcat web context at my src/main/webapp directory. I used a quick script to copy any newly compiled classes from /target into src/main/webapp/WEB-INF/classes when necessary and usually tomcat would automatically redeploy the app.
That's obviously the wrong way round. Use the maven-war-plugin to collect your dependencies and whatever else is required in target/your-webapp and point the Tomcat context to that directory. The sysdeo plugin does that for you. Works like a charm for me. The only configuration I require is that I have changed the default location of the webapp directory from target/your-webapp-version to target/your-webapp. This saves me reconfiguring the Tomcat plugin when I increase the version number. Jochen -- "Besides, manipulating elections is under penalty of law, resulting in a preventative effect against manipulating elections. The german government justifying the use of electronic voting machines and obviously believing that we don't need a police, because all illegal actions are forbidden. http://dip.bundestag.de/btd/16/051/1605194.pdf --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
