Skip to content

Commit 43a65bb

Browse files
committed
Merge branch 'main' into develop
2 parents a667a25 + 4e00496 commit 43a65bb

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
]
6060
6161
- name: Deploy Snapshot
62-
run: mvn deploy -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
62+
run: mvn deploy -DdeploySnapshots=true -DskipTests -Dgpg.passphrase="$PGP_KEY_PASSWORD"
6363
shell: bash
6464
env:
6565
PGP_KEY_PASSWORD: ${{ secrets.PGP_KEY_PASSWORD }}

pom.xml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -544,17 +544,13 @@
544544
<groupId>org.apache.maven.plugins</groupId>
545545
<artifactId>maven-deploy-plugin</artifactId>
546546
<version>3.1.4</version>
547+
<configuration>
548+
<skip>true</skip>
549+
</configuration>
547550
</plugin>
548551
</plugins>
549552
</build>
550553

551-
<distributionManagement>
552-
<snapshotRepository>
553-
<id>central</id>
554-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
555-
</snapshotRepository>
556-
</distributionManagement>
557-
558554
<repositories>
559555
<repository>
560556
<name>Central Portal Snapshots</name>
@@ -569,4 +565,33 @@
569565
</repository>
570566
</repositories>
571567

568+
<profiles>
569+
<profile>
570+
<id>snapshots</id>
571+
<activation>
572+
<property>
573+
<name>deploySnapshots</name>
574+
</property>
575+
</activation>
576+
<build>
577+
<plugins>
578+
<plugin>
579+
<groupId>org.apache.maven.plugins</groupId>
580+
<artifactId>maven-deploy-plugin</artifactId>
581+
<version>3.1.4</version>
582+
<configuration>
583+
<skip>false</skip>
584+
</configuration>
585+
</plugin>
586+
</plugins>
587+
</build>
588+
<distributionManagement>
589+
<snapshotRepository>
590+
<id>central</id>
591+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
592+
</snapshotRepository>
593+
</distributionManagement>
594+
</profile>
595+
</profiles>
596+
572597
</project>

0 commit comments

Comments
 (0)