设置安装编译依赖:1)ant,maven,java-1.8.0-openjdk-devel,bzip2,gzip其中maven和jdk最好配置一下环境变量:在profile中最末添加内容进入profile:vim/etc/profile添加类容如下:exportJAVA_HOME=/usr/lib/jvm/jdk1.8.0_65ExportCLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexportPATH=$PATH:$JAVA_HOME/binexportPATH=/root/apache-maven-3