Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 4bbdd12

Browse files
committed
Update pom settings for releasing to maven central
1 parent 76e4fc5 commit 4bbdd12

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed

pom.xml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<modelVersion>4.0.0</modelVersion>
3232
<groupId>com.salesforce.storm</groupId>
3333
<artifactId>dynamic-spout</artifactId>
34+
<!-- Last release was 0.8.0 on 2017-10-12 -->
3435
<version>0.8-SNAPSHOT</version>
3536
<packaging>jar</packaging>
3637
<name>dynamic-spout</name>
@@ -96,6 +97,15 @@
9697
<skipCheckStyle>false</skipCheckStyle>
9798
</properties>
9899

100+
<!-- For deploying to maven central -->
101+
<distributionManagement>
102+
<!-- Snapshot repository -->
103+
<snapshotRepository>
104+
<id>ossrh</id>
105+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
106+
</snapshotRepository>
107+
</distributionManagement>
108+
99109
<dependencies>
100110
<!-- Storm dependencies -->
101111
<dependency>
@@ -402,6 +412,19 @@
402412
</execution>
403413
</executions>
404414
</plugin>
415+
416+
<!-- Release plugin -->
417+
<plugin>
418+
<groupId>org.sonatype.plugins</groupId>
419+
<artifactId>nexus-staging-maven-plugin</artifactId>
420+
<version>1.6.7</version>
421+
<extensions>true</extensions>
422+
<configuration>
423+
<serverId>ossrh</serverId>
424+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
425+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
426+
</configuration>
427+
</plugin>
405428
</plugins>
406429

407430
<pluginManagement>
@@ -446,4 +469,58 @@
446469
</plugin>
447470
</plugins>
448471
</reporting>
472+
473+
<profiles>
474+
<profile>
475+
<id>release</id>
476+
<build>
477+
<plugins>
478+
<!-- Build Sources Jar -->
479+
<plugin>
480+
<groupId>org.apache.maven.plugins</groupId>
481+
<artifactId>maven-source-plugin</artifactId>
482+
<executions>
483+
<execution>
484+
<id>attach-sources</id>
485+
<goals>
486+
<goal>jar</goal>
487+
</goals>
488+
</execution>
489+
</executions>
490+
</plugin>
491+
492+
<!-- Build Javadoc Jar -->
493+
<plugin>
494+
<groupId>org.apache.maven.plugins</groupId>
495+
<artifactId>maven-javadoc-plugin</artifactId>
496+
<version>3.0.0-M1</version>
497+
<executions>
498+
<execution>
499+
<id>build-javadocs</id>
500+
<goals>
501+
<goal>jar</goal>
502+
</goals>
503+
</execution>
504+
</executions>
505+
</plugin>
506+
507+
<!-- GPG Signing of Artifacts -->
508+
<plugin>
509+
<groupId>org.apache.maven.plugins</groupId>
510+
<artifactId>maven-gpg-plugin</artifactId>
511+
<version>1.6</version>
512+
<executions>
513+
<execution>
514+
<id>sign-artifacts</id>
515+
<phase>verify</phase>
516+
<goals>
517+
<goal>sign</goal>
518+
</goals>
519+
</execution>
520+
</executions>
521+
</plugin>
522+
</plugins>
523+
</build>
524+
</profile>
525+
</profiles>
449526
</project>

0 commit comments

Comments
 (0)