Skip to content

Commit 66c4cfe

Browse files
author
jianggang
committed
add publishing config
1 parent 3c84141 commit 66c4cfe

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

pom.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,17 @@
139139
</dependency>
140140
</dependencies>
141141

142+
<distributionManagement>
143+
<snapshotRepository>
144+
<id>ossrh</id>
145+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
146+
</snapshotRepository>
147+
<repository>
148+
<id>ossrh</id>
149+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
150+
</repository>
151+
</distributionManagement>
152+
142153
<build>
143154
<plugins>
144155
<plugin>
@@ -225,6 +236,57 @@
225236
</dependency>
226237
</dependencies>
227238
</plugin>
239+
<plugin>
240+
<groupId>org.sonatype.plugins</groupId>
241+
<artifactId>nexus-staging-maven-plugin</artifactId>
242+
<version>1.6.7</version>
243+
<extensions>true</extensions>
244+
<configuration>
245+
<serverId>ossrh</serverId>
246+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
247+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
248+
</configuration>
249+
</plugin>
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-source-plugin</artifactId>
253+
<version>2.2.1</version>
254+
<executions>
255+
<execution>
256+
<id>attach-sources</id>
257+
<goals>
258+
<goal>jar-no-fork</goal>
259+
</goals>
260+
</execution>
261+
</executions>
262+
</plugin>
263+
<plugin>
264+
<groupId>org.apache.maven.plugins</groupId>
265+
<artifactId>maven-javadoc-plugin</artifactId>
266+
<version>2.9.1</version>
267+
<executions>
268+
<execution>
269+
<id>attach-javadocs</id>
270+
<goals>
271+
<goal>jar</goal>
272+
</goals>
273+
</execution>
274+
</executions>
275+
</plugin>
276+
<plugin>
277+
<groupId>org.apache.maven.plugins</groupId>
278+
<artifactId>maven-gpg-plugin</artifactId>
279+
<version>1.5</version>
280+
<executions>
281+
<execution>
282+
<id>sign-artifacts</id>
283+
<phase>verify</phase>
284+
<goals>
285+
<goal>sign</goal>
286+
</goals>
287+
</execution>
288+
</executions>
289+
</plugin>
228290
</plugins>
229291
</build>
230292
<reporting>

0 commit comments

Comments
 (0)