[root@localhost tongweb-embed-7.0.E.5_P3]# ls
deployMavenJar.bat deployMavenJar.sh installMavenJar.bat installMavenJar.sh lib start_with_umask_template.sh
[root@localhost tongweb-embed-7.0.E.5_P3]# ls lib/
tongweb-embed-7.0.E.5_P3.jar tongweb-javax-el-3.0.0.jar tongweb-spring-boot-data-jdbc-starter-2.x-7.0.E.5_P3.jar
tongweb-embed-javax-7.0.E.5_P3.jar tongweb-javax-jsp-2.1.jar tongweb-spring-boot-maven-plugin-7.0.E.5_P3.jar
tongweb-embed.pom tongweb-javax-security-auth-message-api-1.1.0.jar tongweb-spring-boot-maven-plugin.pom
tongweb-embed-servlet-7.0.E.5_P3.jar tongweb-javax-servlet-4.0.0.jar tongweb-spring-boot-starter-1.x-7.0.E.5_P3.jar
tongweb-embed-websocket-7.0.E.5_P3.jar tongweb-javax-websocket-1.1.jar tongweb-spring-boot-starter-2.x-7.0.E.5_P3.jar
tongweb-gmjsse-7.0.0.jar tongweb-jaxws-api-2.3.1.jar tongweb-spring-boot-websocket-1.x-7.0.E.5_P3.jar
tongweb-gmjsse.pom tongweb-jsp-7.0.E.5_P3.jar tongweb-spring-boot-websocket-2.x-7.0.E.5_P3.jar
tongweb-gmssl-1.0.0.jar tongweb-plugin.jar tongweb-websocket-starter1.x.pom
tongweb-javax-annotation-1.2.jar tongweb-spring-boot-data-jdbc-starter-1.x-7.0.E.5_P3.jar tongweb-websocket-starter2.x.pom
执行命令: 上传中央仓库
sh deployMavenJar.sh "http://172.16.10.1:8082/repository/thirdparty/" "thirdparty"
[root@localhost tongweb-embed-7.0.E.5_P3]# cat deployMavenJar.sh
#!/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
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-spring-boot-maven-plugin.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-maven-plugin -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=%EMBED_HOME%/lib/tongweb-spring-boot-maven-plugin-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-embed.pom -DgroupId=com.tongweb -DartifactId=tongweb-embed -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-embed-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-jsp -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-jsp-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-data-jdbc-starter-1.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-data-jdbc-starter-1.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-data-jdbc-starter-2.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-data-jdbc-starter-2.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-starter-1.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-starter-1.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-starter-2.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-starter-2.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-websocket-starter1.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-websocket-1.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-websocket-1.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-websocket-starter2.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-websocket-2.x -Dversion=7.0.E.5_P3 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-websocket-2.x-7.0.E.5_P3.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-websocket -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-websocket-7.0.E.5_P3.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-gmssl -Dversion=1.0.0 -Dpackaging=jar -Dfile=${EMBED_HOME}/lib/tongweb-gmssl-1.0.0.jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-javax -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-javax-7.0.E.5_P3.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-servlet -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-servlet-7.0.E.5_P3.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DpomFile=${EMBED_HOME}/lib/tongweb-gmjsse.pom -DgroupId=com.tongweb -DartifactId=tongweb-gmjsse -Dversion=7.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-gmjsse-7.0.0.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-annotation -Dversion=1.2 -Dfile=${EMBED_HOME}/lib/tongweb-javax-annotation-1.2.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-el -Dversion=3.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-el-3.0.0.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-websocket -Dversion=1.1 -Dfile=${EMBED_HOME}/lib/tongweb-javax-websocket-1.1.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-servlet -Dversion=4.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-servlet-4.0.0.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-jsp -Dversion=2.1 -Dfile=${EMBED_HOME}/lib/tongweb-javax-jsp-2.1.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-jaxws-api -Dversion=2.3.1 -Dfile=${EMBED_HOME}/lib/tongweb-jaxws-api-2.3.1.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}
mvn deploy:deploy-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-security-auth-message-api -Dversion=1.1.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-security-auth-message-api-1.1.0.jar -Dpackaging=jar -DrepositoryId=${SID} -Durl=${URL}[root@localhost tongweb-embed-7.0.E.5_P3]#
上传本地仓库
[root@localhost tongweb-embed-7.0.E.5_P3]# cat installMavenJar.sh
#!/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`
mvn install:install-file -DpomFile=${EMBED_HOME}/lib/tongweb-spring-boot-maven-plugin.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-maven-plugin -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-maven-plugin-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DpomFile=${EMBED_HOME}/lib/tongweb-embed.pom -DgroupId=com.tongweb -DartifactId=tongweb-embed -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-jsp -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-jsp-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-data-jdbc-starter-1.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-data-jdbc-starter-1.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-data-jdbc-starter-2.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-data-jdbc-starter-2.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-starter-1.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-starter-1.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-starter-2.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-starter-2.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DpomFile=${EMBED_HOME}/lib/tongweb-websocket-starter1.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-websocket-1.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-websocket-1.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DpomFile=${EMBED_HOME}/lib/tongweb-websocket-starter2.x.pom -DgroupId=com.tongweb.springboot -DartifactId=tongweb-spring-boot-websocket-2.x -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-spring-boot-websocket-2.x-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-websocket -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-websocket-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-gmssl -Dversion=1.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-gmssl-1.0.0.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-javax -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-javax-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-embed-servlet -Dversion=7.0.E.5_P3 -Dfile=${EMBED_HOME}/lib/tongweb-embed-servlet-7.0.E.5_P3.jar -Dpackaging=jar
mvn install:install-file -DpomFile=${EMBED_HOME}/lib/tongweb-gmjsse.pom -DgroupId=com.tongweb -DartifactId=tongweb-gmjsse -Dversion=7.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-gmjsse-7.0.0.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-annotation -Dversion=1.2 -Dfile=${EMBED_HOME}/lib/tongweb-javax-annotation-1.2.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-el -Dversion=3.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-el-3.0.0.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-websocket -Dversion=1.1 -Dfile=${EMBED_HOME}/lib/tongweb-javax-websocket-1.1.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-servlet -Dversion=4.0.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-servlet-4.0.0.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-jsp -Dversion=2.1 -Dfile=${EMBED_HOME}/lib/tongweb-javax-jsp-2.1.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-jaxws-api -Dversion=2.3.1 -Dfile=${EMBED_HOME}/lib/tongweb-jaxws-api-2.3.1.jar -Dpackaging=jar
mvn install:install-file -DgroupId=com.tongweb -DartifactId=tongweb-javax-security-auth-message-api -Dversion=1.1.0 -Dfile=${EMBED_HOME}/lib/tongweb-javax-security-auth-message-api-1.1.0.jar -Dpackaging=jar
依赖jar文件
https://download.csdn.net/download/Michaelwubo/88421414
【国产化信创实践】TongWeb集成SpringBoot_tongweb部署springboot项目-CSDN博客