Skip to content

Commit f618dd4

Browse files
Exclude sample modules from Maven release using explicit reactor selection (#338)
* Configure Maven release to exclude sample modules using explicit module selection Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent fcd83c5 commit f618dd4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/maven-publish-snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
server-password: MAVEN_PASSWORD
2525

2626
- name: Publish snapshot package
27-
run: mvn -B deploy --file pom.xml
27+
run: mvn -B deploy --file pom.xml -pl xapi-model,xapi-client,xapi-model-spring-boot-starter
2828
env:
2929
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3030
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@
254254
<useReleaseProfile>false</useReleaseProfile>
255255
<releaseProfiles>release</releaseProfiles>
256256
<goals>deploy</goals>
257+
<!-- Only release production modules, exclude all sample modules -->
258+
<arguments>-pl xapi-model,xapi-client,xapi-model-spring-boot-starter</arguments>
257259
</configuration>
258260
</plugin>
259261
</plugins>

0 commit comments

Comments
 (0)