Skip to content

Commit c1b8820

Browse files
committed
add maven support
1 parent eb8c013 commit c1b8820

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/dep/ubuntu_init.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ if [ "Y$OPT_JAVA" == "Yyes" ];then
6363
tar xf jdt-language-server-0.35.0-201903142358.tar.gz && rm jdt-language-server*.tar.gz
6464
fi
6565
cd $OLD_DIR
66+
if which mwn >/dev/null;then
67+
# install maven
68+
cd /opt && \
69+
wget http://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.6.1/binaries/apache-maven-3.6.1-bin.tar.gz && \
70+
tar xf apache-maven-3.6.1-bin.tar.gz && \
71+
export PATH=/opt/apache-maven-3.6.1/bin:$PATH && \
72+
echo "export PATH=\"/opt/apache-maven-3.6.1:$PATH\"" >> "$HOME/.cus_zshrc"
73+
cd $OLD_DIR
74+
fi
6675
fi
6776

6877
# install ripgrep

0 commit comments

Comments
 (0)