Skip to content

Commit e2184e7

Browse files
authored
Fix/deployment migration (#853)
* Upgrade to Maven Central: Changed nexus-staging-maven-plugin to central-publishing-maven-plugin
1 parent fba1c06 commit e2184e7

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,4 @@ jobs:
8181
</settings>" > $HOME/.m2/settings.xml
8282
8383
- name: Build and deploy artifact
84-
env:
85-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
86-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
8784
run: mvn -B -e -DskipTests -Dmanual-release -Ddeploy -Dossrh clean deploy -Dossrh.username=${{ secrets.OSSRH_USERNAME }} -Dossrh.password=${{ secrets.OSSRH_TOKEN }} -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }}

pom.xml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
<parent>
2323
<groupId>za.co.absa</groupId>
2424
<artifactId>root-pom</artifactId>
25-
<version>1.0.0</version>
25+
<version>1.1.0</version>
2626
</parent>
2727

28+
<groupId>za.co.absa</groupId>
2829
<artifactId>hyperdrive-trigger</artifactId>
2930
<packaging>war</packaging>
30-
3131
<name>hyperdrive-trigger</name>
3232
<description>Hyperdrive-Trigger is a scheduler and GUI for hyperdrive.</description>
3333
<url>https://github.com/AbsaOSS/hyperdrive-trigger</url>
3434

3535
<scm>
36-
<url>${scm.url}</url>
37-
<connection>${scm.connection}</connection>
38-
<developerConnection>${scm.developerConnection}</developerConnection>
36+
<connection>scm:git:git://github.com/AbsaOSS/hyperdrive-trigger.git</connection>
37+
<developerConnection>scm:git:ssh://github.com/AbsaOSS/hyperdrive-trigger.git</developerConnection>
38+
<url>https://github.com/AbsaOSS/hyperdrive-trigger</url>
3939
<tag>HEAD</tag>
4040
</scm>
4141

@@ -124,10 +124,6 @@
124124
<scalatest.suites />
125125
<scalatest.tagsToExclude>za.co.absa.hyperdrive.trigger.testdata.PersistingData</scalatest.tagsToExclude>
126126
<skip.postgres.tests>true</skip.postgres.tests>
127-
128-
<scm.url><!-- defined outside the pom --></scm.url>
129-
<scm.connection><!-- defined outside the pom --></scm.connection>
130-
<scm.developerConnection><!-- defined outside the pom --></scm.developerConnection>
131127
</properties>
132128
<dependencies>
133129

@@ -638,11 +634,11 @@
638634
</configuration>
639635
</plugin>
640636
<plugin>
641-
<groupId>org.sonatype.plugins</groupId>
642-
<artifactId>nexus-staging-maven-plugin</artifactId>
637+
<groupId>org.sonatype.central</groupId>
638+
<artifactId>central-publishing-maven-plugin</artifactId>
639+
<version>0.8.0</version>
643640
<configuration>
644-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
645-
<stagingProgressTimeoutMinutes>15</stagingProgressTimeoutMinutes>
641+
<autoPublish>false</autoPublish>
646642
</configuration>
647643
</plugin>
648644
<plugin>
@@ -783,11 +779,6 @@
783779
<name>manual-release</name>
784780
</property>
785781
</activation>
786-
<properties>
787-
<scm.connection>scm:git:git://github.com/AbsaOSS/hyperdrive-trigger.git</scm.connection>
788-
<scm.developerConnection>scm:git:ssh://github.com/AbsaOSS/hyperdrive-trigger.git</scm.developerConnection>
789-
<scm.url>https://github.com/AbsaOSS/hyperdrive-trigger/tree/master</scm.url>
790-
</properties>
791782
<build>
792783
<plugins>
793784
<plugin>

0 commit comments

Comments
 (0)