After the installation of Ant we can proceed with Maven.
This HowTo descripes the installation of Maven 3 on a OpenSolaris system and the following integration into Jenkins whose installation was descriped in this guide.
Setup
The Maven installation requires Ant and a JDK to build. If you haven’t installed Ant yet, you should visit the appropriate guide first. The JDK can beinstalled via pkg install.
You can find the current version of Maven on any Apache Mirror near you.
root@test:~# cd /tmp root@test:/tmp# pkg install jdk root@test:/tmp# PATH=$PATH:/opt/local/bin root@test:/tmp# wget http://apache.easy-webs.de/maven/source/apache-maven-3.0.3-src.tar.gz --2011-07-31 21:15:53-- http://apache.easy-webs.de/maven/source/apache-maven-3.0.3-src.tar.gz Connecting to apache.easy-webs.de|87.106.190.69|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3728950 (3.6M) [application/x-gzip] Saving to: `apache-maven-3.0.3-src.tar.gz' 100%[===========================================================>] 3,728,950 641K/s in 6.1s 2011-07-31 21:15:59 (598 KB/s) - `apache-maven-3.0.3-src.tar.gz' saved [3728950/3728950] root@test:/tmp# tar xvf apache-maven-3.0.3-src.tar.gz Decompressing 'apache-maven-3.0.3-src.tar.gz' with '/usr/bin/gzcat'... x apache-maven-3.0.3, 0 bytes, 0 tape blocks x apache-maven-3.0.3/apache-maven, 0 bytes, 0 tape blocks x apache-maven-3.0.3/apache-maven/src, 0 bytes, 0 tape blocks ... root@test:/tmp/apache-maven-3.0.3# export M2_HOME=/opt/maven/ root@test:/tmp/apache-maven-3.0.3# ant root@test:/tmp/apache-maven-3.0.3# cd .. root@test:/tmp# rm -r apache-maven-3.0.3
Jenkins Setup
To tell Jenkins which Maven installation should be used, you need to enter the Jenkins-Website and click on Manage Jenkins.
Now enter Configure System and set the Maven settings according to this screenshot.


