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.
When building, we need to return two tarballs:
~/.m2(the home directory of the build user), so we need to make sure to relocate it.
In order to relocate the repository, create a file named
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.
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