Provided you have done at least one complete build you should be able to build individual modules.
- Change to the modules home directory
cd $GEOTOOLS_HOME/gt/modules/library/main - Use maven to compile
mvn compile
It should do a complete build. - Use maven to update the registry
mvn install
It should run the test cases and install the jar in the registry for other modules (or applications).
Most Common Problem
If you have not done a full build yet then the build may fail because it can't find the jar for a module it depends on.
An error caused by not having another GT2 module installed can be a little misleading:
Error: unable to download main-2.1.x.jar
This is because Maven:
- failed to find main-2.1,x.jar in the local repository where a full build should have put it
- tried to download the file from the internet (and failed)
If you see an error like that, either do a full build or change into the module which is missing (main in this case) and type.
maven jar:install
Avoiding Tests
You may also notice that running the tests takes a fair wack of time. While these tests need to be run before you commit for the day, you may want to forgo the wait while experimenting.
The following will build the tests - but not run them:
mvn -DskipTests install
This is useful for installing the postgis module test jar; which is used by the postgis-version module as a dependency.
The following will not even build the tests:
mvn -Dmaven.test.skip=true install