局长信箱-后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

65 lines
3.2 KiB

#!/bin/sh
DIRNAME=`pwd`
ulimit -n 65536 >/dev/null 2>&1
ulimit -c unlimited
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ]; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
# Get standard environment variables
PRGDIR=`dirname "$PRG"`
EMBED_HOME=`cd ${PRGDIR}/ && pwd`
URL="$1"
if [[ -z "$URL" ]];
then
echo Please enter the [url] of the repository to deploy.
echo Syntax:
echo deployMavenJar.bat [url] [sid]
echo url : the url of the repository to deploy
echo sid : id to map on server section of settings.xml, you can find it in settings.xml "setting->servers->server"
echo NOTE: You should either specify username/password OR privateKey/passphrase in settings.xml, since these pairings are used together.
echo Examples:
echo deployMavenJar.bat "http://127.0.0.1:8081/nexus/content/repositories/central/" "central"
exit
fi
SID="$2"
if [[ -z "$SID" ]];
then
echo Please enter [sid] to map on server section of settings.xml
echo Syntax:
echo deployMavenJar.bat [url] [sid]
echo url : the url of the repository to deploy
echo sid : id to map on server section of settings.xml, you can find it in settings.xml "setting->servers->server"
echo NOTE: You should either specify username/password OR privateKey/passphrase in settings.xml, since these pairings are used together.
echo Examples:
echo deployMavenJar.bat "http://127.0.0.1:8081/nexus/content/repositories/central/" "central"
fi
if [ -n "$3" ]; then
EMBED_HOME=$3
fi
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-core-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-embed-core-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-el-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-embed-el-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-jsp-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-embed-jsp-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-websocket-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-embed-websocket-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-starter3.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-starter-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-starter-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-websocket-starter3.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-websocket-3.x -Dversion=7.0.E.6_P6 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-websocket-3.x-7.0.E.6_P6.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-lic-sdk -Dversion=4.5.0.0 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-lic-sdk-4.5.0.0.jar -DrepositoryId=${SID} -Durl=${URL}