From f1e21db257586bd636a34ca295d08d6e500f1d55 Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Thu, 21 Aug 2025 15:47:37 +0200 Subject: [PATCH 1/2] copr: build with java-21-openjdk-devel On COPR java-11-openjdk-devel is not available anymore, so build with java-21-openjdk-devel, which is the default on CentOS 10 also. Signed-off-by: Jean-Louis Dupond --- .copr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.copr/Makefile b/.copr/Makefile index 8cb809a..073e537 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -13,7 +13,7 @@ installdeps: jackson-annotations \ jackson-core \ jackson-databind \ - java-11-openjdk-devel \ + java-21-openjdk-devel \ javapackages-tools \ make \ maven-source-plugin \ From 4f2d1968d0deabfa180a0e8bf7a3e01ee3b8b407 Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Thu, 21 Aug 2025 16:40:34 +0200 Subject: [PATCH 2/2] spec: remove central-publishing-maven-plugin during rpm build We don't need the central-publishing-maven-plugin during rpm build stage. So remove it from the pom in the spec file. Signed-off-by: Jean-Louis Dupond --- vdsm-jsonrpc-java.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vdsm-jsonrpc-java.spec.in b/vdsm-jsonrpc-java.spec.in index 9a8066c..5ded8c1 100644 --- a/vdsm-jsonrpc-java.spec.in +++ b/vdsm-jsonrpc-java.spec.in @@ -67,6 +67,9 @@ This package contains the API documentation for %{name}. # No need for maven-javadoc-plugin in RHEL8+, xmvn will take care of it. %pom_remove_plugin :maven-javadoc-plugin client/pom.xml.in +# No need for central-publishing-maven-plugin, this is only used for deployments. +%pom_remove_plugin org.sonatype.central:central-publishing-maven-plugin pom.xml.in + %build %configure