Skip to content

Commit 137684b

Browse files
committed
Added nexus-staging-plugin
1 parent 08f8437 commit 137684b

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

pom.xml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<groupId>io.scalecube</groupId>
@@ -55,6 +57,8 @@
5557
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
5658
<maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
5759
<versions-maven-plugin.version>2.7</versions-maven-plugin.version>
60+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
61+
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
5862

5963
<!-- check style configuration -->
6064
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
@@ -192,8 +196,19 @@
192196
<releaseProfiles>release</releaseProfiles>
193197
<tagNameFormat>release-@{project.version}</tagNameFormat>
194198
<goals>deploy</goals>
195-
<username>${env.GITHUB_ACTOR}</username>
196-
<password>${env.GITHUB_TOKEN}</password>
199+
<!-- <username>${env.GITHUB_ACTOR}</username>-->
200+
<!-- <password>${env.GITHUB_TOKEN}</password>-->
201+
</configuration>
202+
</plugin>
203+
<plugin>
204+
<groupId>org.sonatype.plugins</groupId>
205+
<artifactId>nexus-staging-maven-plugin</artifactId>
206+
<version>${nexus-staging-maven-plugin.version}</version>
207+
<extensions>true</extensions>
208+
<configuration>
209+
<serverId>ossrh</serverId>
210+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
211+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
197212
</configuration>
198213
</plugin>
199214
<plugin>
@@ -211,7 +226,7 @@
211226
<message>The reactor is not valid</message>
212227
<ignoreModuleDependencies>true</ignoreModuleDependencies>
213228
</reactorModuleConvergence>
214-
<dependencyConvergence />
229+
<dependencyConvergence/>
215230
</rules>
216231
</configuration>
217232
</execution>
@@ -407,6 +422,10 @@
407422
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
408423
</repository>
409424
</distributionManagement>
425+
<plugin>
426+
<groupId>org.sonatype.plugins</groupId>
427+
<artifactId>nexus-staging-maven-plugin</artifactId>
428+
</plugin>
410429
</profile>
411430
</profiles>
412431

0 commit comments

Comments
 (0)