Pages

Friday, 8 August 2008

Using Maven to Work with Others

I have watched a number of developers fall over the handling of Maven SNAPSHOTS today; so it was time to take action.

The general idea is an email is sent out saying "new snapshot deployed please build with -U" - here is what that means:

Update

svn up

build using the -U option

mvn clean install -U -Dmaven.test.skip=true

The above example skipped the tests (which is common when you are trying to pull down a quick update and keep working), please note by definition that "-U" is not compatible with the "-o" offline mode.

If you are working on uDig there is an extra step; you need to run the libs refres.xml script which will use a "maven ant task" to pull the changed jars in for your.

About Me

Active Java developer with a hands-on approach available for consulting and training. Brings an enterprise computing / business intelligence background to GIS and standards work.

Serves on the Project Steering Committee of GeoServer, GeoTools and uDig projects. Outreach to new projects as a member of both the Open Source Geospatial Foundation and LocationTech Industry Working Group.