Skip to content

Commit 4ba9e84

Browse files
authored
Merge pull request #1564 from data-integrations/ossrh-migration
Use central publishing plugin
2 parents fbae2b3 + fce2c4f commit 4ba9e84

File tree

1 file changed

+6
-41
lines changed

1 file changed

+6
-41
lines changed

pom.xml

Lines changed: 6 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,6 @@
5555
<url>https://issues.cask.co/browse/CDAP</url>
5656
</issueManagement>
5757

58-
<distributionManagement>
59-
<repository>
60-
<id>sonatype.release</id>
61-
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
62-
</repository>
63-
<snapshotRepository>
64-
<id>sonatype.snapshots</id>
65-
<url>https://central.sonatype.com/repository/maven-snapshots</url>
66-
</snapshotRepository>
67-
</distributionManagement>
68-
6958
<properties>
7059
<jee.version>7</jee.version>
7160
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -118,16 +107,6 @@
118107
</dependencyManagement>
119108

120109
<repositories>
121-
<repository>
122-
<id>sonatype</id>
123-
<url>https://ossrh-staging-api.central.sonatype.com/content/groups/public</url>
124-
<releases>
125-
<enabled>true</enabled>
126-
</releases>
127-
<snapshots>
128-
<enabled>false</enabled>
129-
</snapshots>
130-
</repository>
131110
<repository>
132111
<id>sonatype-snapshots</id>
133112
<url>https://central.sonatype.com/repository/maven-snapshots</url>
@@ -1150,29 +1129,15 @@
11501129
</execution>
11511130
</executions>
11521131
</plugin>
1153-
1154-
<plugin>
1155-
<groupId>org.apache.maven.plugins</groupId>
1156-
<artifactId>maven-release-plugin</artifactId>
1157-
<version>2.5.3</version>
1158-
<configuration>
1159-
<tag>v${releaseVersion}</tag>
1160-
<tagNameFormat>v@{project.version}</tagNameFormat>
1161-
<autoVersionSubmodules>true</autoVersionSubmodules>
1162-
<!-- releaseProfiles configuration will actually force a Maven profile
1163-
– the `releases` profile – to become active during the Release process. -->
1164-
<releaseProfiles>releases</releaseProfiles>
1165-
</configuration>
1166-
</plugin>
1167-
11681132
<plugin>
1169-
<groupId>org.sonatype.plugins</groupId>
1170-
<artifactId>nexus-staging-maven-plugin</artifactId>
1171-
<version>1.6.14</version>
1133+
<groupId>org.sonatype.central</groupId>
1134+
<artifactId>central-publishing-maven-plugin</artifactId>
1135+
<version>0.8.0</version>
11721136
<extensions>true</extensions>
11731137
<configuration>
1174-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com</nexusUrl>
1175-
<serverId>sonatype.release</serverId>
1138+
<publishingServerId>sonatype.release</publishingServerId>
1139+
<autoPublish>false</autoPublish>
1140+
<ignorePublishedComponents>true</ignorePublishedComponents>
11761141
</configuration>
11771142
</plugin>
11781143
</plugins>

0 commit comments

Comments
 (0)