Skip to content

Commit d4ffee7

Browse files
authored
Merge pull request #134 from maxmind/nlogan/nexus-staging-maven-plugin
Use nexus-staging-maven-plugin
2 parents 5ea5a01 + 7dce260 commit d4ffee7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,18 @@
100100
</execution>
101101
</executions>
102102
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<version>3.6.2</version>
107+
<executions>
108+
<execution>
109+
<goals>
110+
<goal>jar</goal>
111+
</goals>
112+
</execution>
113+
</executions>
114+
</plugin>
103115
<plugin>
104116
<groupId>org.apache.maven.plugins</groupId>
105117
<artifactId>maven-compiler-plugin</artifactId>
@@ -150,6 +162,26 @@
150162
<artifactId>versions-maven-plugin</artifactId>
151163
<version>2.16.1</version>
152164
</plugin>
165+
<plugin>
166+
<groupId>org.sonatype.plugins</groupId>
167+
<artifactId>nexus-staging-maven-plugin</artifactId>
168+
<version>1.6.13</version>
169+
<extensions>true</extensions>
170+
<configuration>
171+
<serverId>sonatype-nexus-staging</serverId>
172+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
173+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
174+
</configuration>
175+
<executions>
176+
<execution>
177+
<id>default-deploy</id>
178+
<phase>deploy</phase>
179+
<goals>
180+
<goal>deploy</goal>
181+
</goals>
182+
</execution>
183+
</executions>
184+
</plugin>
153185
</plugins>
154186
</build>
155187
<properties>
@@ -173,4 +205,10 @@
173205
</build>
174206
</profile>
175207
</profiles>
208+
<distributionManagement>
209+
<repository>
210+
<id>sonatype-nexus-staging</id>
211+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
212+
</repository>
213+
</distributionManagement>
176214
</project>

0 commit comments

Comments
 (0)