Note: This web site is only kept up to date for OSG Software 1.2 (VDT 2.0.0). If you are looking for information for the most recent release, the RPM-based OSG Software 3.0, please see the OSG documentation web site

Maven builds

Maven is a tool for building java projects, and it automatically fetches dependencies from external caches while building. Quaestio was our first Maven build, and we made an NMI build so that we could recreate the build even if the external repositories are no longer available.

NMI build

When building, we need to return two tarballs:

In order to relocate the repository, create a file named settings.xml with the following contents (substituting the correct path):

<settings>
  <localRepository>$base_dir/quaestio.m2</localRepository>
</settings>

Further details are located in the build-quaestio.pl file.

Re-creating the build offline

To re-create the build as we did it on the NMI machine, here are the steps:

cd /scratch/kronenfe
cp /p/vdt/public/html/software/quaestio/0.8.4/quaestio-build-env.tar.gz .
tar zxf quaestio-build-env.tar.gz
cd discovery

Create a file named settings.xml with the following contents:

<settings>
  <localRepository>/scratch/kronenfe/discovery/quaestio.m2</localRepository>
</settings>

Then run the maven build. The maven tool mvn is available at /p/vdt/public/html/software/apache-maven. Note that subversion 1.6.4 or newer is required (which is also available in our software directory)

mvn --settings settings.xml --offline clean package assembly:attached

The result will be in the target subdirectory.