On Tue, Sep 02, 2014 at 04:11:47PM -0500, Wayne Fay wrote:
> > My question is: how do I get the web.xml that maven generates include the 
> > extra
> > directives that I need for the CORS filter to work when the project is 
> > launched from
> > Eclipse or the command line using the tomcat7:run goal?
> 
> Not sure if this is possible, but if it is, the documentation is a
> good place to start:
> https://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/run-mojo.html
> 

Wayne,

Thanks.  I've been reading tons of documentation and have read the
tomcat7-maven-plugin documentation in its entirety...twice.

For now I have settled on taking the generated web.xml and placing it
in src/main/tomcatconf/web.xml, then tweaking it with my custom
configuration directives.  I'm not terribly fond of this approach as it
seems to me that I am giving up the flexibility of letting the maven
build process generate the file.

What I hoped to accomplish was to put some specific snippets in pom.xml
or some other place and have maven pick up those snippets and drop them
in the right place in the generated web.xml.

In any event, this is only a concern for running using the embedded
tomcat with the tomcat7:run goal, so I'm not going to get too worked up
over it.

Regards,

-Roberto
-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to