加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.bat 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
zhangzhuo 提交于 2021-10-24 17:24 . 更新到2.4.5, 并修改目录
REM windows package
REM package
::如果不需要进行maven打包, 则使用 REM 注释掉该行
call mvn clean install -Dmaven.test.skip=true
REM del dist
rmdir dist /s /q
REM create dist
mkdir dist
mkdir dist\plugins
mkdir dist\plugin-configs
mkdir dist\lib
REM copy main program and config
xcopy example-main\target\example-main-*.jar dist /s /i
xcopy example-main\src\main\resources\application-prod.yml dist /s
xcopy example-main\target\lib\* dist\lib /y /e /i /q
REM copy plugin and config
xcopy example-plugins-dir1\example-jpa\target\*.jar dist\plugins /s
xcopy example-plugins-dir1\example-jpa\src\main\resources\*-prod.yml dist\plugin-configs /s
xcopy example-plugins-dir1\example-basic\target\*.jar dist\plugins /s
xcopy example-plugins-dir1\example-basic\src\main\resources\*-prod.yml dist\plugin-configs /s
xcopy example-plugins-dir2\example-plugin1\target\*.jar dist\plugins /s
xcopy example-plugins-dir2\example-plugin1\src\main\resources\*-prod.yml dist\plugin-configs /s
xcopy example-plugins-dir2\example-plugin1\src\main\resources\plugin1-log.xml dist\plugin-configs /s
xcopy example-plugins-dir2\example-plugin2\target\*.jar dist\plugins /s
xcopy example-plugins-dir2\example-plugin2\src\main\resources\*-prod.yml dist\plugin-configs /s
REM copy bin
xcopy bin\* dist\ /s
cd dist
REM run main
rename example-main-*.jar example.jar
rename application-prod.yml application.yml
:: 运行命令为: java -jar example.jar --spring.config.location=application.yml
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化