Files
my-spring/web-fast/bin/package.sh
2026-03-19 10:57:24 +08:00

21 lines
489 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# /**
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
# * No deletion without permission, or be held responsible to law.
# *
# * Author: ThinkGem@163.com
# */
echo ""
echo "[信息] 打包Web工程生成war/jar包文件。"
echo ""
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
fi
mvn -v
echo ""
cd ..
mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
cd bin