GeoServer 2 Maven Quickstart
This documentation is no longer maintained. Please see the new GeoServer documentation at http://docs.geoserver.org
This documentation is a temporary collection of notes with GeoServer 2.0 specific advise.
Related:
2 Maven Quickstart
Checkout GeoServer 2.0
Check out the source code:
C:\java\geoserver> svn co https://svn.codehaus.org/geoserver/trunk/src trunk
And a configuration directory:
C:\java\geoserver> svn co https://svn.codehaus.org/geoserver/trunk/data/release release
You can choose a different configuration directory if you like; we are choosing "release" here so you can compare geoserver 2.0 using a dataset you are familiar with
Maven Build
The new user interface is available in community/web2. Community modules are turned on using the maven profile system.
C:\java\geoserver> cd trunk C:\java\geoserver\trunk mvn install -Pweb2
The traditional user interface experience is available using -Plegacy - however it did not compile at the time of writing.
Run with Jetty
You can now navigate to the web2/app folder and run:
C:\java\geoserver\trunk\> cd community\web2\app C:\java\geoserver\trunk\web2\app> mvn jetty:run -DGEOSERVER_DATA_DIR=C:\java\geoserver\data\release
You can then visit localhost to try out the new ui:
- http://localhost:8080/geoserver/
- http://127.0.0.1:8080/geoserver/ (if you are on windows and have not updated your hosts file)
Bring into Eclipse
You can create the eclipse .project and .classpath files using the following command:
C:\java\geoserver\trunk> mvn eclipse:eclipse -Pweb2
You can then import the geoserver modules using the "Import Existing Project" wizard in eclipse.