Maven is used primarily to allow us to work with other projects with a minimum of fuss and bother.
Related:
Dependency Version Changes
When a dependency changes you will need to update the root pom.xml "dependency management section" to reflect the new version number.
You should be able to locate an entry like this and change the version number:
<dependency>
<groupId>net.java.dev.swing-layout</groupId>
<artifactId>swing-layout</artifactId>
<version>1.0.2</version>
</dependency>
Dependency SNAPSHOT Changes
We depend on a "snapshot" of several projects (usually project GeoTools community memebers are involved in like GeoAPI or ImageIO-EXT). In these cases an email will be sent to the developer list asking people to "update with -U"
To respond to one of these emails include "-u" in your next build.
- 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 for a quick update), please note by definition that "-U" is not compatible with the "-o" offline mode.
Deploy GeoTools SNAPSHOT
If you are working on GeoServer or uDig or another project that depends on the latest greatest GeoTools release you will need to know how to deploy a SNAPSHOT (so members of your developer community do not get compile errors).
Usually do this after a commit:
- Update to make sure you are not missing out on anyones work
svn up
- Build with tests to make sure your commit is not fatal
mvn clean install
- Commit - remember to include any Jira numbers in your log message
svn commit -m "Change to fix shapefile charset handling, see GEOT-1437" - Ensure your ~/.m2/settings.xml has your webdav credentials (these are the same as your svn access credentials)
<?xml version="1.0" encoding="ISO-8859-1"?> <settings> <offline>false</offline> <!-- set to true to build udig offline --> <servers> <server> <id>refractions</id> <username>NAME</username> <password>PASSOWRD</password> </server> </servers> </settings>
- Deploy for members of your community
mvn deploy -Dmaven.test.skip=true - Let your community know via email!