To build NMaven:
svn co https://svn.apache.org/repos/asf/incubator/nmaven/trunk nmaven
cd nmaven mvn install
To run with integration tests:
mvn install -P run-its
Building on Linux may take some extra steps. By default, on many Linux environments, the GNU Compiler for Java is already installed. The current GNU version may not work with NMaven, which requires JDK 1.5. To check which version the system uses, type java -version on the command line. If you see something similar to the following, you will need to take additional steps to get the build setup:
java version "1.4.2" gij (GNU libgcj) version 4.1.1 20060525 (Red Hat 4.1.1-1)
Create a file /etc/profile.d/java.sh with the following entries:
export JAVA_HOME=/usr/java/jdk1.5.0_09 export PATH=$JAVA_HOME/bin:$PATH
Type mvn -version from the command line. You should see the following:
java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01) Java HotSpot(TM) Client VM (build 1.5.0_09-b01, mixed mode, sharing)
You can try to build with the default version of Mono installed. If it doesn't work, type mono -V on the command line to see what version you are running. If it is below 1.2.3.1, then download the latest mono version, unzip and run rpm from the commandline. Detailed instructions are located here: Installing Mono. Make sure to su to root before installing with these instructions!