build: 分环境打包 (Maven profile 注入激活 profile, jar 名加 -test/-prod 后缀)

- ry-api/pom.xml 新增 test/prod profile, 提供 active.profile 与 jar.suffix
- ruoyi-admin 资源过滤仅针对 application*.yml, finalName 追加 jar.suffix
- application.yml 的 spring.profiles.active 改用 @active.profile@, 免运行时 --spring.profiles.active

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-10-14 13:38:34 +00:00
co-authored by Claude Code
parent f8afe9baab
commit 1dc200a3cc
3 changed files with 42 additions and 3 deletions
@@ -6,8 +6,8 @@ spring:
# 国际化资源文件路径
basename: i18n/messages
profiles:
# 默认 prod 环境; 本地测试用 --spring.profiles.active=test (group 自动展开为 druid,test)
active: prod
# 默认 prod; Maven 打包时用 -Ptest/-Pprod 注入 @active.profile@ (见 pom.xml profiles), 免运行时 --spring.profiles.active
active: @active.profile@
group:
test: druid,test
prod: druid,prod