Cocoon 2.2 : Maven vs. customized web.xml

View: New views
3 Messages — Rating Filter:   Alert me  

Cocoon 2.2 : Maven vs. customized web.xml

by Tomek Piechowicz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.
I want to use XQueryServlet in my application so I added servlet
configuration to my web.xml but after I started jetty server maven
overwrited my web.xml :(.

Is it possible to prevent maven from changing web.xml every time it
starts jetty server ?

Regards,
Tomasz.

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


Re: Cocoon 2.2 : Maven vs. customized web.xml

by Barbara Slupik-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I use jetty for development. I have my web.xml in my block directory,  
where pom.xml file is. In my pom.xml file I define:

<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.7</version>
        <configuration>
                ...
                <webXml>web.xml</webXml>
        </configuration>
</plugin>

Jetty uses my web.xml file and does not overwrite it.

Barbara

On 1 Jul, 2009, at 6:40 pm, Tomek Piechowicz wrote:

> Hello.
> I want to use XQueryServlet in my application so I added servlet  
> configuration to my web.xml but after I started jetty server maven  
> overwrited my web.xml :(.
>
> Is it possible to prevent maven from changing web.xml every time it  
> starts jetty server ?
>
> Regards,
> Tomasz.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


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


Re: Cocoon 2.2 : Maven vs. customized web.xml

by Rosiu1125 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should use xpatch to do this:
http://cocoon.apache.org/2.2/maven-plugins/maven-plugin/1.0/1360_1_1.html

Maciej Rosiek

Tomek Piechowicz wrote:
I want to use XQueryServlet in my application so I added servlet
configuration to my web.xml but after I started jetty server maven
overwrited my web.xml :(.

Is it possible to prevent maven from changing web.xml every time it
starts jetty server ?