Skip to content

Commit 5b0b5c3

Browse files
authored
Configure maven-staging-plugin (#2901)
1 parent 2293e5d commit 5b0b5c3

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

pom.xml

+30
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,24 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
397397
</execution>
398398
</executions>
399399
</plugin>
400+
<plugin>
401+
<groupId>org.sonatype.plugins</groupId>
402+
<artifactId>nexus-staging-maven-plugin</artifactId>
403+
<executions>
404+
<execution>
405+
<id>deploy-to-sonatype</id>
406+
<phase>deploy</phase>
407+
<goals>
408+
<goal>deploy</goal>
409+
<goal>release</goal>
410+
</goals>
411+
</execution>
412+
</executions>
413+
<configuration>
414+
<serverId>oss.sonatype.org</serverId>
415+
<nexusUrl>https://oss.sonatype.org</nexusUrl>
416+
</configuration>
417+
</plugin>
400418
</plugins>
401419
</build>
402420
</profile>
@@ -524,4 +542,16 @@ We use these goals frequently to keep the dependencies and plugins up-to-date:
524542
</build>
525543
</profile>
526544
</profiles>
545+
546+
<distributionManagement>
547+
<repository>
548+
<id>sonatype-nexus-staging</id>
549+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
550+
</repository>
551+
<snapshotRepository>
552+
<id>sonatype-nexus-snapshots</id>
553+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
554+
</snapshotRepository>
555+
</distributionManagement>
556+
527557
</project>

0 commit comments

Comments
 (0)