Skip to content

Commit 3ea43cb

Browse files
committed
remove maven debug
add profile back fix nexus plugin settings fix nexus url
1 parent b2871fb commit 3ea43cb

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
permissions:
99
contents: write
10-
pull-requests: write
1110
steps:
1211
- name: Validate branch
1312
if: ${{ github.ref != 'refs/heads/master' }}
@@ -22,7 +21,7 @@ jobs:
2221
with:
2322
distribution: 'corretto'
2423
java-version: '8'
25-
server-id: sonatype-nexus-staging
24+
server-id: ossrh
2625
server-username: ${{ secrets.OSSRH_USERNAME }}
2726
server-password: ${{ secrets.OSSRH_PASSWORD }}
2827

@@ -34,7 +33,6 @@ jobs:
3433
- name: Maven release
3534
run: |
3635
mvn \
37-
-e \
3836
-B \
3937
-P release \
4038
release:clean \

pom.xml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,13 @@
4747
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4848
<maven.compiler.source>1.8</maven.compiler.source>
4949
<maven.compiler.target>1.8</maven.compiler.target>
50-
<ossrh.id>sonatype-nexus-staging</ossrh.id>
51-
<ossrh.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.url>
5250
</properties>
5351

5452
<distributionManagement>
55-
<snapshotRepository>
56-
<id>sonatype-nexus-snapshots</id>
57-
<name>Sonatype Nexus Snapshots</name>
58-
<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
59-
</snapshotRepository>
6053
<repository>
61-
<id>${ossrh.id}</id>
54+
<id>ossrh</id>
6255
<name>Nexus Release Repository</name>
63-
<url>${ossrh.url}</url>
56+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
6457
</repository>
6558
</distributionManagement>
6659

@@ -119,6 +112,9 @@
119112
<groupId>org.apache.maven.plugins</groupId>
120113
<artifactId>maven-release-plugin</artifactId>
121114
<version>2.5.3</version>
115+
<configuration>
116+
<goals>deploy</goals>
117+
</configuration>
122118
</plugin>
123119
<plugin>
124120
<groupId>org.apache.maven.plugins</groupId>
@@ -197,13 +193,22 @@
197193
</execution>
198194
</executions>
199195
</plugin>
196+
<plugin>
197+
<groupId>org.apache.maven.plugins</groupId>
198+
<artifactId>maven-deploy-plugin</artifactId>
199+
<version>2.7</version>
200+
<configuration>
201+
<skip>true</skip>
202+
</configuration>
203+
</plugin>
200204
<plugin>
201205
<groupId>org.sonatype.plugins</groupId>
202206
<artifactId>nexus-staging-maven-plugin</artifactId>
203207
<version>1.6.8</version>
208+
<extensions>true</extensions>
204209
<configuration>
205-
<serverId>${ossrh.id}</serverId>
206-
<nexusUrl>${ossrh.url}</nexusUrl>
210+
<serverId>ossrh</serverId>
211+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
207212
<autoReleaseAfterClose>true</autoReleaseAfterClose>
208213
</configuration>
209214
</plugin>

0 commit comments

Comments
 (0)