Java Maven linux 配置 --避免Gem space 错误
vi /etc/profile
#
#Set Java env
#
JAVA_HOME=/opt/tools/jdk1.6.0_32
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
JVM_OPTS="-Xms256m -XX:PermSize=256m -XX:MaxPermSize=512m"
export JAVA_HOME CLASSPATH JVM_OPTS PATH
#
#Set Maven env
#
M2_HOME=/opt/tools/maven/apache-maven-3.0.3
M2=$M2_HOME/bin
MAVEN_OPTS="$MAVEN_OPTS -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
PATH=$M2:$PATH
export M2_HOME M2 MAVEN_OPTS PATH