Skip to content

Commit a27f6cc

Browse files
Simplify Maven commands by using -pl directly instead of -Darguments
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent ae67957 commit a27f6cc

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ jobs:
3232
git config user.name "github-actions[bot]"
3333
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3434
# Only release production modules, exclude all sample modules
35-
mvn -B -batch-mode release:prepare release:perform --file pom.xml \
36-
-Darguments="-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am"
35+
mvn -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am -batch-mode release:prepare release:perform --file pom.xml
3736
env:
3837
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3938
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ jobs:
9494
9595
# Run release:prepare with explicit release version
9696
# Maven will automatically calculate the next development version
97-
./mvnw -B release:prepare \
97+
# Only prepare production modules, exclude all sample modules
98+
./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:prepare \
9899
-DreleaseVersion="${VERSION}" \
99100
-Dtag="${TAG_NAME}" \
100101
-DpushChanges=false

0 commit comments

Comments
 (0)