release: v2.0.14 with fixed JAR name matching V1

- JAR name fixed to cw-elevator-application-V1.0.0.20211103.jar
  matching V1 production naming convention exactly
- Release bundle directory uses version+date for identification
- Update release script and POM finalName accordingly
This commit is contained in:
反编译工作区
2026-05-05 18:23:08 +08:00
parent 6f1cd21a5b
commit 7d52fd5d0b
22 changed files with 1234 additions and 4 deletions
+3 -3
View File
@@ -3,14 +3,14 @@
# 目录命名对齐历史运行包 cw-elevator-application-V1.0.0.20211103
# cw-elevator-application-V<版本>.<日期>(日期默认当天 YYYYMMDD,可用 RELEASE_DATE_LABEL 覆盖)。
# 用法:在仓库根执行 ./scripts/release-cw-elevator-application.sh [版本号]
# 默认版本与根 POM 中 elevator.release.finalName 后缀一致(当前 2.0.8
# JAR 命名对齐 V1 运行包 cw-elevator-application-V1.0.0.20211103.jar
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
MAVEN_ROOT="${ROOT}/maven-cw-elevator-application"
REL_VER="${1:-2.0.8}"
JAR_NAME="cw-elevator-application-${REL_VER}.jar"
RELEASE_DATE_LABEL="${RELEASE_DATE_LABEL:-$(date +%Y%m%d)}"
JAR_NAME="cw-elevator-application-V1.0.0.20211103.jar"
BUNDLE_DIR_NAME="cw-elevator-application-V${REL_VER}.${RELEASE_DATE_LABEL}"
OUT_DIR="${MAVEN_ROOT}/releases/${BUNDLE_DIR_NAME}"
DOC_FALLBACK_VER="${DOC_FALLBACK_VER:-2.0.6}"
@@ -55,7 +55,7 @@ if [[ ! -f "${SRC_JAR}" ]]; then
done
fi
if [[ -z "${SRC_JAR}" || ! -f "${SRC_JAR}" ]]; then
echo "ERROR: 未找到可用 starter 制品(期望 ${JAR_NAME}" >&2
echo "ERROR: 未找到可用 starter 制品(期望 ${JAR_NAME} 或 cw-elevator-application-*.jar" >&2
exit 1
fi