局长信箱-后台服务
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.
 
 
 
 

60 lines
3.2 KiB

@echo off
setlocal
set "CURRENT_DIR=%cd%"
if not "%EMBED_HOME%" == "" goto gotHome
set "EMBED_HOME=%CURRENT_DIR%"
:gotHome
if exist "%EMBED_HOME%\deployMavenJar.bat" goto CHECK_URL
echo current dir [%EMBED_HOME%] is not correct.
echo Please enter the directory containing the specified command [deployMavenJar.bat].
goto end
:CHECK_URL
set "URL=%1"
if not "%URL%" == "" goto CHECK_RID
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"
pause
goto end
:CHECK_RID
set "SID=%2"
if not "%SID%" == "" goto OK_HOME
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"
pause
goto end
:OK_HOME
call 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%
call 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%
call 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%
call 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%
call 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%
call 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%
call 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%
pause
:end