From 68e9bb7d8d1d5f4b835b9e6cf170975cf8f77a76 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Sat, 29 Sep 2018 17:27:31 +0800 Subject: [PATCH] =?UTF-8?q?:bookmark:=20Nexus3=20=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/deploy/tool/maven/install-nexus3.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 codes/deploy/tool/maven/install-nexus3.sh diff --git a/codes/deploy/tool/maven/install-nexus3.sh b/codes/deploy/tool/maven/install-nexus3.sh new file mode 100644 index 0000000..fce0b8f --- /dev/null +++ b/codes/deploy/tool/maven/install-nexus3.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +################################################################################### +# 安装 sonatype nexus(用于搭建 maven 私服) 脚本 +# 适用于所有 linux 发行版本。 +# sonatype nexus 会被安装到 /opt/maven 路径。 +# 注意:sonatype nexus 要求必须先安装 JDK +# Author: Zhang Peng +################################################################################### + +echo -e "\n>>>>>>>>> install sonatype nexus" + +mkdir -p /opt/maven +cd /opt/maven + +version=3.13.0-01 +wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz +tar -zxf nexus-unix.tar.gz