Skip to content

Commit ce40ad9

Browse files
committed
Add plugins for publishing to Maven
1 parent a8131d7 commit ce40ad9

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

pom.xml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,79 @@
8282
</plugin>
8383
</plugins>
8484
</pluginManagement>
85+
<plugins>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-source-plugin</artifactId>
89+
<version>2.2.1</version>
90+
<executions>
91+
<execution>
92+
<id>attach-sources</id>
93+
<goals>
94+
<goal>jar-no-fork</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
</plugin>
99+
<plugin>
100+
<groupId>org.apache.maven.plugins</groupId>
101+
<artifactId>maven-javadoc-plugin</artifactId>
102+
<version>2.9.1</version>
103+
<executions>
104+
<execution>
105+
<id>attach-javadocs</id>
106+
<goals>
107+
<goal>jar</goal>
108+
</goals>
109+
<configuration>
110+
<!--
111+
TODO-RS: Java 8 is more strict about some javadoc tags.
112+
We'll need to update quite a few to remove this workaround.
113+
-->
114+
<additionalparam>-Xdoclint:none</additionalparam>
115+
</configuration>
116+
</execution>
117+
</executions>
118+
</plugin>
119+
<plugin>
120+
<groupId>org.sonatype.plugins</groupId>
121+
<artifactId>nexus-staging-maven-plugin</artifactId>
122+
<version>1.6.7</version>
123+
<extensions>true</extensions>
124+
<configuration>
125+
<serverId>ossrh</serverId>
126+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
127+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
128+
</configuration>
129+
</plugin>
130+
<plugin>
131+
<groupId>org.apache.maven.plugins</groupId>
132+
<artifactId>maven-gpg-plugin</artifactId>
133+
<executions>
134+
<execution>
135+
<id>sign-artifacts</id>
136+
<phase>verify</phase>
137+
<goals>
138+
<goal>sign</goal>
139+
</goals>
140+
<configuration>
141+
<keyname>${gpg.sqs.keyname}</keyname>
142+
<passphraseServerId>gpg.sqs.passphrase</passphraseServerId>
143+
</configuration>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
85148
</build>
149+
150+
<distributionManagement>
151+
<snapshotRepository>
152+
<id>ossrh</id>
153+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
154+
</snapshotRepository>
155+
<repository>
156+
<id>ossrh</id>
157+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
158+
</repository>
159+
</distributionManagement>
86160
</project>

0 commit comments

Comments
 (0)