Skip to content

Commit ae67957

Browse files
Remove release plugin arguments from pom.xml and update workflows
Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 5cab027 commit ae67957

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
run: |
3232
git config user.name "github-actions[bot]"
3333
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34-
mvn -B -batch-mode release:prepare release:perform --file pom.xml
34+
# 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"
3537
env:
3638
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3739
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ jobs:
108108
echo "Performing release and deploying to Maven Central"
109109
110110
# Run release:perform to build and deploy
111+
# Only release production modules, exclude all sample modules
111112
./mvnw -B release:perform \
112113
-DlocalCheckout=true \
113-
-DeployAtEnd=true
114+
-DeployAtEnd=true \
115+
-Darguments="-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am"
114116
env:
115117
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
116118
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@
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 -am</arguments>
259257
</configuration>
260258
</plugin>
261259
</plugins>

0 commit comments

Comments
 (0)