Skip to content

Commit 1f78161

Browse files
committed
Do not use Nexus plugin as it does not behave correctly
1 parent ddd61f8 commit 1f78161

File tree

3 files changed

+2
-61
lines changed

3 files changed

+2
-61
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ on:
88
default: true
99
type: boolean
1010

11-
skip-initial-verification:
12-
description: "Skip tests, dependency check, formatting, licenses"
13-
default: false
14-
type: boolean
15-
1611
version:
1712
description: "Version (leave blank to release non-SNAPSHOT patch)"
1813
default: ""
@@ -46,21 +41,6 @@ jobs:
4641
gpg-passphrase: GPG_PASSPHRASE
4742
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
4843

49-
- name: Ensure all tests pass
50-
if: ${{ ! inputs.skip-initial-verification }}
51-
shell: bash
52-
run: >-
53-
./mvnw
54-
-B
55-
-e
56-
-T4
57-
-U
58-
-P dependency-check
59-
--no-transfer-progress
60-
-Dstyle.color=always
61-
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
62-
clean verify
63-
6444
- name: Configure Git
6545
shell: bash
6646
run: |-
@@ -95,7 +75,6 @@ jobs:
9575
"-Dlicense.skip=true"
9676
"-Dcheckstyle.skip=true"
9777
"-Preleases"
98-
'-P!acceptance-tests'
9978
)
10079
10180
run <<-SCRIPT
@@ -115,6 +94,7 @@ jobs:
11594
SCRIPT
11695
11796
success "Release has been performed successfully"
97+
info "Please log onto the Nexus staging site and mark the release as closed to publish it"
11898
11999
env:
120100
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}

acceptance-tests/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
<maven.javadoc.skip>true</maven.javadoc.skip>
6060
<maven.release.skip>true</maven.release.skip>
6161
<skip-dependency-scan>true</skip-dependency-scan>
62-
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
6362
</properties>
6463

6564
<dependencyManagement>

pom.xml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
<modules>
3535
<module>java-compiler-testing</module>
36+
<module>acceptance-tests</module>
3637
</modules>
3738

3839
<inceptionYear>2022</inceptionYear>
@@ -605,24 +606,6 @@
605606
</execution>
606607
</executions>
607608
</plugin>
608-
609-
<plugin>
610-
<!-- Swaps out the maven deploy steps with Nexus-specific logic that can automate staging
611-
checks for us. -->
612-
<groupId>org.sonatype.plugins</groupId>
613-
<artifactId>nexus-staging-maven-plugin</artifactId>
614-
<version>${nexus-staging-maven-plugin.version}</version>
615-
<extensions>true</extensions>
616-
<configuration>
617-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
618-
<autoDropAfterRelease>true</autoDropAfterRelease>
619-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
620-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
621-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
622-
<serverId>ossrh</serverId>
623-
<updateReleaseInfo>true</updateReleaseInfo>
624-
</configuration>
625-
</plugin>
626609
</plugins>
627610
</pluginManagement>
628611

@@ -722,21 +705,6 @@
722705
</build>
723706
</profile>
724707

725-
<profile>
726-
<id>acceptance-tests</id>
727-
<activation>
728-
<activeByDefault>true</activeByDefault>
729-
</activation>
730-
731-
<modules>
732-
<!--
733-
Activate these here so that they do not appear when Nexus is being
734-
invoked
735-
-->
736-
<module>acceptance-tests</module>
737-
</modules>
738-
</profile>
739-
740708
<profile>
741709
<id>releases</id>
742710

@@ -788,12 +756,6 @@
788756
</execution>
789757
</executions>
790758
</plugin>
791-
792-
<!-- Swap out the deploy plugin with the Nexus support to skip staging entirely. -->
793-
<plugin>
794-
<groupId>org.sonatype.plugins</groupId>
795-
<artifactId>nexus-staging-maven-plugin</artifactId>
796-
</plugin>
797759
</plugins>
798760
</build>
799761
</profile>

0 commit comments

Comments
 (0)