Skip to content

Commit

Permalink
remove maven debug
Browse files Browse the repository at this point in the history
add profile back

fix nexus plugin settings

fix nexus url
  • Loading branch information
kodjo-anipah committed Mar 20, 2023
1 parent b2871fb commit 3ea43cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Validate branch
if: ${{ github.ref != 'refs/heads/master' }}
Expand All @@ -22,7 +21,7 @@ jobs:
with:
distribution: 'corretto'
java-version: '8'
server-id: sonatype-nexus-staging
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_PASSWORD }}

Expand All @@ -34,7 +33,6 @@ jobs:
- name: Maven release
run: |
mvn \
-e \
-B \
-P release \
release:clean \
Expand Down
27 changes: 16 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<ossrh.id>sonatype-nexus-staging</ossrh.id>
<ossrh.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh.url>
</properties>

<distributionManagement>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>${sonatypeOssDistMgmtSnapshotsUrl}</url>
</snapshotRepository>
<repository>
<id>${ossrh.id}</id>
<id>ossrh</id>
<name>Nexus Release Repository</name>
<url>${ossrh.url}</url>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

Expand Down Expand Up @@ -119,6 +112,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -197,13 +193,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.8</version>
<extensions>true</extensions>
<configuration>
<serverId>${ossrh.id}</serverId>
<nexusUrl>${ossrh.url}</nexusUrl>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
Expand Down

0 comments on commit 3ea43cb

Please sign in to comment.