Skip to content

Commit e689087

Browse files
authored
BAH-4171 | Refactor. Migrate to Sonatype Central Portal Publishing (#169)
1 parent d3cd86e commit e689087

File tree

1 file changed

+10
-40
lines changed

1 file changed

+10
-40
lines changed

pom.xml

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -104,27 +104,19 @@
104104
</excludes>
105105
</configuration>
106106
</plugin>
107-
<plugin>
108-
<groupId>org.sonatype.plugins</groupId>
109-
<artifactId>nexus-staging-maven-plugin</artifactId>
110-
<version>1.5.1</version>
107+
</plugins>
108+
</pluginManagement>
109+
<plugins>
110+
<plugin>
111+
<groupId>org.sonatype.central</groupId>
112+
<artifactId>central-publishing-maven-plugin</artifactId>
113+
<version>0.7.0</version>
111114
<extensions>true</extensions>
112-
<executions>
113-
<execution>
114-
<id>default-deploy</id>
115-
<phase>deploy</phase>
116-
<goals>
117-
<goal>deploy</goal>
118-
</goals>
119-
</execution>
120-
</executions>
121115
<configuration>
122-
<serverId>nexus-sonatype</serverId>
123-
<nexusUrl>https://oss.sonatype.org</nexusUrl>
116+
<publishingServerId>nexus-sonatype</publishingServerId>
124117
</configuration>
125118
</plugin>
126-
</plugins>
127-
</pluginManagement>
119+
</plugins>
128120
<!-- <plugins>-->
129121
<!-- <plugin>-->
130122
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
@@ -272,7 +264,7 @@
272264
<repository>
273265
<id>sonatype-nexus-snapshots</id>
274266
<name>Sonatype Nexus Snapshots</name>
275-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
267+
<url>https://central.sonatype.com/repository/maven-snapshots</url>
276268
<releases>
277269
<enabled>false</enabled>
278270
</releases>
@@ -281,17 +273,6 @@
281273
<updatePolicy>interval:10080</updatePolicy>
282274
</snapshots>
283275
</repository>
284-
<repository>
285-
<id>sonatype-nexus-releases</id>
286-
<name>Sonatype Nexus Snapshots</name>
287-
<url>https://oss.sonatype.org/content/repositories/releases</url>
288-
<releases>
289-
<enabled>true</enabled>
290-
</releases>
291-
<snapshots>
292-
<enabled>false</enabled>
293-
</snapshots>
294-
</repository>
295276
</repositories>
296277

297278
<pluginRepositories>
@@ -305,17 +286,6 @@
305286
</pluginRepository>
306287
</pluginRepositories>
307288

308-
<distributionManagement>
309-
<snapshotRepository>
310-
<id>nexus-sonatype</id>
311-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
312-
</snapshotRepository>
313-
<repository>
314-
<id>nexus-sonatype</id>
315-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
316-
</repository>
317-
</distributionManagement>
318-
319289
<profiles>
320290
<profile>
321291
<id>IT</id>

0 commit comments

Comments
 (0)