Hi all,

I had to debug a bug that happened on tomcat but didn't on jetty.
To do so I wanted to figure out what would it take to being able of
running mvn tomcat:run the same way to can do mvn jetty:run.
It turns out that the embedded tomcat doesn't like our servlet-api
dependency, which makes sense. Getting rid of it implies setting it to
'provided' scope, which in turn requires to explicitly add it to every
pom that needs the Servlet API.
The other think the tomcat maven plugin doesn't like is the web-app
pom to have 'jar' packaging instead of 'war'. Now, since web-app moved
to be pretty much just a web app with no code some time ago, I wonder
if we could set its packaging to war. There are no classes ending up
in WEB-INF/classes anyway so it doesn't make sense to have it as a
jar?

In any case, the following patch makes it so that mvn tomcat:run can
be used. Review and comments appreciated.
<https://github.com/groldan/geoserver/commit/d79a5f2a95cef80dda59fd283857e64136ee8b67>

Cheers,
Gabriel
-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to