Linux下编译Lantern的准备

编译Lantern需要安装JDK和maven,安装JDK的方法参见上一篇文章:Ubuntu配置Lantern方法

下面是我安装maven的脚本,仅供参考:

[bash]
#!/bin/bash

cd /opt
mvnver=apache-maven-3.1.1
wget http://www.bizdirusa.com/mirrors/apache/maven/maven-3/3.1.1/binaries/$mvnver-bin.tar.gz
tar -zxvf $mvnver-bin.tar.gz

rm -f $mvnver-bin.tar.gz
rm -fr apache-maven
ln -s $mvnver apache-maven

echo “export M2_HOME=/opt/apache-maven” >> /etc/profile
echo ‘export PATH=$PATH:$M2_HOME/bin’ >> /etc/profile
source /etc/profile
mvn -v
[/bash]

Tags:

Leave a Reply