Install maven and python
1. Install Maven
2. edit /etc/profile, add following setting
M2_HOME='/opt/maven/apache-maven-3.0'
export M2_HOME
PATH=$PATH:$M2_HOME/bin
export PATH
3. source /etc/profile
4. change local Repository if you want
vi /opt/maven/apache-maven-3.0/conf/settings.xml
<localRepository>your repository path</localRepository>
5. install python 2.7
wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
tar -xvf Python-2.7.tar.bz2
./configure --prefix=/opt/python2.7
make
make install
6. 环境变量设置失败后的恢复办法
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
7. maven command
mvn clean install -Dmaven.repo.local=/share/localRepository -e | tee dirint.log