Just my two cents, but I would avoid using Maven at all and just unzip the
standard war, modify files, and zip it back into a customized war. War
files are just zips with a specific layout. This is the approach I've been
using, and I'm able to do things like customize the data directory, modify
the GWC directory in web.xml, add plugins to the lib folder, etc.

-Shane

On Fri, Feb 10, 2012 at 10:46 AM, Max Stephan <[email protected]> wrote:

> Hi Andrea,
>
> in the meantime I´ve read a bit about maven and have been looking at the
> pom.xml for the webapp. I decided to try to customize the build-process a
> bit as follows:
> - I have added a new target to the geoserver-config-maven-plugin
> (config.build.xml) named "copyWebXml"
> - it copies the web.xml to the webapp-source-directory if the
> webXmlDir-parameter is provided when triggering the maven-install-goal
> - I´ve added the metadata for the new target in config.mojos.xml (including
> the required params)
>
> Now I can run the build-process for the webapp like this "mvn
> -DwebXmlDir="/myDir" clean install. The web.xml from "/myDir" is copied
> into
> the source-folder for the webapp-creation and therefore included into the
> war-file.
>
> Do you think it would make sense to generally include this into the
> geoserver-source? I guess I´m not the only one in need of something like
> this. I could share the necessary code (though I guess each of you
> geoserver-cracks could do the same within minutes ;-) ).
>
> Best regards
> Max Stephan
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/Recommended-way-to-set-default-GEOSERVER-DATA-DIR-for-webapp-build-tp4382843p4383678.html
> Sent from the GeoServer - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>



-- 
Shane StClair
Software Engineer
Axiom Consulting & Design
http://www.axiomalaska.com
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to