This repository has been archived on 2026-08-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gmp-service/deploy/build.sh
T
2026-05-07 15:54:19 +08:00

20 lines
386 B
Bash

#!/bin/bash
set -e
echo "===== 开始构建 gmp-mock-service ====="
mvn clean package -DskipTests
if [ $? -eq 0 ]; then
echo "===== 构建成功 ====="
JAR_PATH="target/gmp-mock-service.jar"
if [ -f "$JAR_PATH" ]; then
SIZE=$(du -h "$JAR_PATH" | cut -f1)
echo "JAR 文件: $JAR_PATH ($SIZE)"
fi
else
echo "===== 构建失败 ====="
exit 1
fi