We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b921bce commit 68e9bb7Copy full SHA for 68e9bb7
1 file changed
codes/deploy/tool/maven/install-nexus3.sh
@@ -0,0 +1,18 @@
1
+#!/usr/bin/env bash
2
+
3
+###################################################################################
4
+# 安装 sonatype nexus(用于搭建 maven 私服) 脚本
5
+# 适用于所有 linux 发行版本。
6
+# sonatype nexus 会被安装到 /opt/maven 路径。
7
+# 注意:sonatype nexus 要求必须先安装 JDK
8
+# Author: Zhang Peng
9
10
11
+echo -e "\n>>>>>>>>> install sonatype nexus"
12
13
+mkdir -p /opt/maven
14
+cd /opt/maven
15
16
+version=3.13.0-01
17
+wget -O /opt/maven/nexus-unix.tar.gz http://download.sonatype.com/nexus/3/nexus-${version}-unix.tar.gz
18
+tar -zxf nexus-unix.tar.gz
0 commit comments