From aa0e39450353fa36bdcc8e4ac040a6868e1fd759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E6=9D=8E=C2=B7De?= Date: Wed, 13 Apr 2022 12:47:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8C=85=E5=88=B0?= =?UTF-8?q?=E7=A7=81=E6=9C=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/pom.xml | 31 +++++++++++++++++++++++++++++++ deploy.sh | 14 +------------- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/build/pom.xml b/build/pom.xml index e030818d..4b6651af 100644 --- a/build/pom.xml +++ b/build/pom.xml @@ -158,4 +158,35 @@ + + + + + + + + nexus + nexus + http://10.108.10.53:8081/repository/maven-public/ + + true + + + true + always + + + + + + + + nexus-releases + http://10.108.10.53:8081/repository/maven-releases/ + + + nexus-snapshots + http://10.108.10.53:8081/repository/maven-snapshots/ + + diff --git a/deploy.sh b/deploy.sh index 54dcd4ac..635af105 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,13 +1,6 @@ #!/bin/bash - #该脚本为私有化脚本,打包成内含网页的product-report-starter放在内网私服 -echo 'choose deploy type [1/2]' -echo '1:deploy snapshot' -echo '2:deploy release' -read choose - - #判断node.js mvn是否存在 command -v npm >/dev/null 2>&1 || { echo >&2 "I require node.js v14.16.0+ but it's not installed. Aborting."; sleep 5; exit 1; } command -v mvn >/dev/null 2>&1 || { echo >&2 "I require maven 3.5 + but it's not installed. Aborting."; sleep 5; exit 1; } @@ -34,12 +27,7 @@ mv $BuildDir/report-ui/dist/* $BuildDir/report-core/src/main/resources/static/ echo "build springboot" cd $BuildDir/report-core - -if [ $choose = '2' ]; then - mvn clean deploy -DskipTests -DaltDeploymentRepository=nexus-releases::default::http://10.108.10.53:8081/repository/maven-releases -else - mvn clean deploy -DskipTests -DaltDeploymentRepository=nexus-snapshots::default::http://10.108.10.53:8081/repository/maven-snapshots -fi +mvn clean deploy -DskipTests rm -rf $BuildDir/report-core/src/main/resources/static git reset --hard \ No newline at end of file