single thread for maven-deploy-plugin

This commit is contained in:
2024-08-28 23:36:41 +10:00
parent bf50c6764f
commit 85af9ac704
3 changed files with 5 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ jobs:
RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }} RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}
run: | run: |
mvn -X -B deploy \ mvn -X -B deploy \
-P publish \ -P home-lab \
--settings=${{ github.workspace }}/.mvn/settings.xml --settings=${{ github.workspace }}/.mvn/settings.xml
- name: Finish release - name: Finish release
run: mvn gitflow:release-finish -B -DpushRemote=true -DallowSnapshots=true run: mvn gitflow:release-finish -B -DpushRemote=true -DallowSnapshots=true

View File

@@ -31,8 +31,9 @@ jobs:
SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }} SNAPSHOT_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL }}
RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }} RELEASE_DEPLOYMENT_REPOSITORY_URL: ${{ secrets.RELEASE_DEPLOYMENT_REPOSITORY_URL }}
run: | run: |
mvn -X -B deploy \ mvn -X -B deploy \
-P publish \ -P home-lab \
-Dmaven.artifact.threads=1 \
--settings=${{ github.workspace }}/.mvn/settings.xml --settings=${{ github.workspace }}/.mvn/settings.xml
- uses: actions/upload-artifact@v3.1.3 - uses: actions/upload-artifact@v3.1.3
if: always() if: always()

View File

@@ -1,7 +1,7 @@
<settings> <settings>
<profiles> <profiles>
<profile> <profile>
<id>publish</id> <id>home-lab</id>
<properties> <properties>
<altSnapshotDeploymentRepository>${env.DEPLOYMENT_REPOSITORY_ID}::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL}</altSnapshotDeploymentRepository> <altSnapshotDeploymentRepository>${env.DEPLOYMENT_REPOSITORY_ID}::${env.SNAPSHOT_DEPLOYMENT_REPOSITORY_URL}</altSnapshotDeploymentRepository>
<altReleaseDeploymentRepository>${env.DEPLOYMENT_REPOSITORY_ID}::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL}</altReleaseDeploymentRepository> <altReleaseDeploymentRepository>${env.DEPLOYMENT_REPOSITORY_ID}::${env.RELEASE_DEPLOYMENT_REPOSITORY_URL}</altReleaseDeploymentRepository>