CentOS how to update Ant Version to 1.8.x and higher?
Awk's answer may probably work, but for some reason, it's not working for me. Then i found this (a bit different) answer by Googling.
- Download “bin” Release from http://ant.apache.org/bindownload.cgi
- Extract & copy/move the whole folder (apache-ant-1.9xxxxx) into
/opt/
. So there will be/opt/apache-ant-1.9xxxxxx/
- Make a Symlink:
ln -s /opt/apache-ant-1.9.xxxxx /opt/ant
- Make another Symlink:
ln -s /opt/ant/bin/ant /usr/bin/ant
- Set
ANT_HOME
into the Environmentvi /etc/environment
and add this line:ANT_HOME=/opt/ant
(without trailing slash) - Re-login to initiate the Environment.
That one perfectly works for me.