From 8f0c82f2e69c32983b92390e18c470ac7e3a1e6d Mon Sep 17 00:00:00 2001
From: chuck <361648887@qq.com>
Date: Tue, 30 Jun 2026 01:25:59 +0800
Subject: [PATCH] =?UTF-8?q?```=20refactor(pom):=20=E5=B0=86sample=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97=E7=A7=BB=E8=87=B3profile=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 移除默认modules中的structure-infra-sample模块
- 添加sample profile配置并设置为默认激活
- 在release工作流中排除sample profile以避免部署时包含示例模块
```
---
.github/workflows/release.yml | 2 +-
pom.xml | 13 ++++++++++++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e65c59e..bb12a51 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,7 +46,7 @@ jobs:
- name: Deploy to Maven Central
run: |
- mvn clean deploy -P release,oss -Dmaven.test.skip=true -Drevision=$RELEASE_VERSION -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -s .mvn/settings.xml
+ mvn clean deploy -P release,oss,!sample -Dmaven.test.skip=true -Drevision=$RELEASE_VERSION -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -s .mvn/settings.xml
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
diff --git a/pom.xml b/pom.xml
index 385b800..6e9190a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,9 +32,20 @@
structure-infra-jpa-starter
structure-infra-mongodb-starter
structure-infra-elasticsearch-starter
- structure-infra-sample
+
+
+ sample
+
+ true
+
+
+ structure-infra-sample
+
+
+
+