asascience-open/ncSOS — pull request #26 by CowanSM (2012-06-14 17:27:39+00:00)
Title: Maven

Updated to work with maven release tracking.

to download maven: http://maven.apache.org/download.html
to install maven: http://maven.apache.org/download.html#Installation

You'll need to install the resourcesOptional.jar into the maven local repo (to my knowledge this doesn't exist in any central repo). The command to do that is:

mvn install:install-file
-Dfile=
-DgroupId=
-DartifactId=
-Dversion=
-Dpackaging=
-DgeneratePom=true

Where: the path to the file to load
the group that the file should be registered under (optional.resources)
the artifact name for the file (resourcesOptional)
the version of the file (1.0)
the packaging of the file e.g. jar

If anyone knows where this jar came from, please let me know.

To build a jar (using maven) to use with thredds use the following command:

mvn package -DskipTests=true -Dmaven.test.skip=true

This will build the jar and the copy the servlet xml file to the /target folder. You can then use the jar file as usual. You can omit the two skip test commands if you want to run the tests, though they do take some time (about 7 minutes) to fully run.