You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Erasmo <ei...@gmail.com> on 2008/08/26 00:48:09 UTC

web.xml overrided on every mvn jetty:run

I have created a Cocoon 2.2 project following the steps provided by "Your
first cocoon application using Maven 2" i need to add a db driver so i edit
the target/rcl/webapp/WEB-INF/web.xml but everytime i ran the app it gets
override. How can i prevent this?

Thanks.

Re: web.xml overrided on every mvn jetty:run

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Erasmo pisze:
> I have created a Cocoon 2.2 project following the steps provided by 
> "Your first cocoon application using Maven 2" i need to add a db driver 
> so i edit the target/rcl/webapp/WEB-INF/web.xml but everytime i ran the 
> app it gets override. How can i prevent this?

Hi Erasmo,

You should never modify target directory directly because it's auto-generated and is cleaned up 
every time your application is being rebuilt.

In order to add some content to web.xml there is xpatch support for it.

See http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1360_1_1.html for details.

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org