Thursday, January 10, 2013

Install ant from source

1. Download apache-ant
wget http://ftp.heanet.ie/mirrors/www.apache.org/dist/ant/binaries/apache-ant-1.8.4-bin.tar.gz
2. Unpack and move to work directory
$ tar -zxf apache-ant-1.8.4-bin.tar.gz
$ sudo mv apache-ant-1.8.4 /usr/local
3. Link to binary directory. That's all
$ sudo ln -s /usr/local/apache-ant-1.8.4/bin/ant /usr/bin/ant

Install maven from source



  1. Download apache-maven2-*-.tar.gz
  2. Unpack to directory your_directory
  3. Set variable to environments
    #sudo gedit /etc/environment
  4. M2_HOME=your_directory
    PATH=$PATH:$M2_HOME/bin 
  5. Reboot your machine. And welcome! 
[Update]
But i created link to /usr/bin/mvn from my_dir/bin/mvn