Skip to content

Commit edca148

Browse files
Adjust Maven Central Deployment after OSSRH sunset
Signed-off-by: Karsten Schnitter <[email protected]>
1 parent 639d3b3 commit edca148

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@
147147
<java-jwt.version>4.4.0</java-jwt.version>
148148
<jackson-databind.version>2.18.2</jackson-databind.version>
149149
<httpclient.version>4.5.14</httpclient.version>
150+
<sonatype.plugin.version>0.8.0</sonatype.plugin.version>
150151
</properties>
151152

152153
<modules>
@@ -265,7 +266,7 @@
265266
</build>
266267
<profiles>
267268
<profile>
268-
<id>ossrh</id>
269+
<id>central</id>
269270
<build>
270271
<plugins>
271272
<plugin>
@@ -275,7 +276,7 @@
275276
<executions>
276277
<execution>
277278
<id>attach-sources</id>
278-
<phase>validate</phase>
279+
<phase>package</phase>
279280
<goals>
280281
<goal>jar-no-fork</goal>
281282
</goals>
@@ -310,6 +311,15 @@
310311
</execution>
311312
</executions>
312313
</plugin>
314+
<plugin>
315+
<groupId>org.sonatype.central</groupId>
316+
<artifactId>central-publishing-maven-plugin</artifactId>
317+
<version>${sonatype.plugin.version}</version>
318+
<extensions>true</extensions>
319+
<configuration>
320+
<publishingServerId>central</publishingServerId>
321+
</configuration>
322+
</plugin>
313323
</plugins>
314324
</build>
315325
</profile>

sample/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<artifactId>logging-sample-app</artifactId>
55
<packaging>war</packaging>
6+
<name>sample-app</name>
67
<parent>
78
<groupId>com.sap.hcp.cf.logging</groupId>
89
<artifactId>cf-java-logging-support-parent</artifactId>

0 commit comments

Comments
 (0)