Skip to content

Commit 97611a2

Browse files
committed
Add Nexus profile
Added a Nexus profile for distributions to Maven central.
1 parent adb38fc commit 97611a2

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

module/pom.xml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
<maven.site.plugin>3.8.2</maven.site.plugin>
5353
<maven.doxia.plugin>[1.9,)</maven.doxia.plugin>
5454
<maven.project.info.reports.plugin>2.9</maven.project.info.reports.plugin>
55+
<nexus.staging.pluggin>1.6.8</nexus.staging.pluggin>
56+
<nexus.url>https://oss.sonatype.org</nexus.url>
5557

5658
<junit.version>[5.4,)</junit.version>
5759
<jsonurl.version>1.0.0-SNAPSHOT</jsonurl.version>
@@ -96,14 +98,21 @@
9698
</developer>
9799
</developers>
98100
<issueManagement>
99-
<url>https://github.com/jsonurl/jsonurl/issues</url>
101+
<url>${jsonurl.scm.url}/issues</url>
100102
<system>GitHub Issues</system>
101103
</issueManagement>
102104
<scm>
103105
<url>${jsonurl.scm.url}/modules</url>
104106
<connection>${jsonurl.scm.base}</connection>
105107
<developerConnection>${jsonurl.scm.base}</developerConnection>
106108
</scm>
109+
<distributionManagement>
110+
<snapshotRepository>
111+
<id>ossrh</id>
112+
<url>${nexus.url}/content/repositories/snapshots</url>
113+
</snapshotRepository>
114+
</distributionManagement>
115+
107116

108117
<dependencies>
109118
<dependency>
@@ -121,7 +130,9 @@
121130
</dependencies>
122131

123132
<build>
133+
<!--
124134
<finalName>jsonurl-${project.artifactId}-${project.version}</finalName>
135+
-->
125136
<pluginManagement>
126137
<plugins>
127138
<plugin>
@@ -209,6 +220,17 @@
209220
</execution>
210221
</executions>
211222
</plugin>
223+
<plugin>
224+
<groupId>org.sonatype.plugins</groupId>
225+
<artifactId>nexus-staging-maven-plugin</artifactId>
226+
<version>${nexus.staging.pluggin}</version>
227+
<extensions>true</extensions>
228+
<configuration>
229+
<serverId>ossrh</serverId>
230+
<nexusUrl>${nexus.url}/</nexusUrl>
231+
<autoReleaseAfterClose>false</autoReleaseAfterClose>
232+
</configuration>
233+
</plugin>
212234
</plugins>
213235
</pluginManagement>
214236
</build>
@@ -264,5 +286,17 @@
264286
</plugins>
265287
</build>
266288
</profile>
289+
290+
<profile>
291+
<id>nexus</id>
292+
<build>
293+
<plugins>
294+
<plugin>
295+
<groupId>org.sonatype.plugins</groupId>
296+
<artifactId>nexus-staging-maven-plugin</artifactId>
297+
</plugin>
298+
</plugins>
299+
</build>
300+
</profile>
267301
</profiles>
268302
</project>

0 commit comments

Comments
 (0)