http://maven.apache.org/plugins/maven-war-plugin/inplace-mojo.html http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html
On 1/23/06, KC Baltz <[EMAIL PROTECTED]> wrote: > I'd like to convert our project to use M2 for web app development and I've > run into a bit of a snag. Right now, we use Eclipse with the Sysdeo plugin > so we can run our webapp in Tomcat, directly from Eclipse without any sort of > deployment/copying steps. The files we edit are the ones Tomcat is using. > This is great because we can edit JSPs and see the changes take place > immediately. I don't want to give up this behavior. > > Here's the problem: We have some values in web.xml that we want to be > configured at build time via filtering. We're currently using an Ant task > to copy, filter, and rename web.xml.template to web.xml. In Maven, the best > practice seems to be to not have a rename step, but I can't see how to make > this work with an in-place deployment. I need to have an unfiltered version > of web.xml for CVS, and a filtered version for running in Tomcat. > > Obviously, I could point Tomcat at the /target/MyProject directory and run it > from there, but then any changes I made to JSPs would need to be copied back > to the /src tree to commit them to CVS. > > Is anyone doing something like this? Can you suggest a fix? > > K.C. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
