Skip to content

Commit 31e7679

Browse files
Adjust Maven Central Deployment after OSSRH sunset
Signed-off-by: Karsten Schnitter <k.schnitter@sap.com> (cherry picked from commit edca148)
1 parent 7316ccb commit 31e7679

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
<httpclient.version>4.5.14</httpclient.version>
129129
<servlet.api.version>5.0.0</servlet.api.version>
130130
<jetty.version>11.0.14</jetty.version>
131+
<sonatype.plugin.version>0.8.0</sonatype.plugin.version>
131132
</properties>
132133

133134
<modules>
@@ -229,7 +230,7 @@
229230
</build>
230231
<profiles>
231232
<profile>
232-
<id>ossrh</id>
233+
<id>central</id>
233234
<build>
234235
<plugins>
235236
<plugin>
@@ -239,7 +240,7 @@
239240
<executions>
240241
<execution>
241242
<id>attach-sources</id>
242-
<phase>validate</phase>
243+
<phase>package</phase>
243244
<goals>
244245
<goal>jar-no-fork</goal>
245246
</goals>
@@ -274,6 +275,15 @@
274275
</execution>
275276
</executions>
276277
</plugin>
278+
<plugin>
279+
<groupId>org.sonatype.central</groupId>
280+
<artifactId>central-publishing-maven-plugin</artifactId>
281+
<version>${sonatype.plugin.version}</version>
282+
<extensions>true</extensions>
283+
<configuration>
284+
<publishingServerId>central</publishingServerId>
285+
</configuration>
286+
</plugin>
277287
</plugins>
278288
</build>
279289
</profile>

0 commit comments

Comments
 (0)