diff --git a/ortools/java/pom-full.xml.in b/ortools/java/pom-full.xml.in
index 4022cb3e20..3bcb137fae 100644
--- a/ortools/java/pom-full.xml.in
+++ b/ortools/java/pom-full.xml.in
@@ -48,17 +48,6 @@
http://github.com/google/or-tools/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
UTF-8
1.8
@@ -166,6 +155,15 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+
+
diff --git a/ortools/java/pom-local.xml.in b/ortools/java/pom-local.xml.in
index c1c4b74e4a..17ec15efff 100644
--- a/ortools/java/pom-local.xml.in
+++ b/ortools/java/pom-local.xml.in
@@ -48,17 +48,6 @@
http://github.com/google/or-tools/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
UTF-8
1.8
@@ -138,6 +127,15 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+
+
diff --git a/ortools/java/pom-native.xml.in b/ortools/java/pom-native.xml.in
index a09a4ccb7f..2292da7c22 100644
--- a/ortools/java/pom-native.xml.in
+++ b/ortools/java/pom-native.xml.in
@@ -48,17 +48,6 @@
http://github.com/google/or-tools/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
UTF-8
1.8
@@ -123,6 +112,15 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+
+
diff --git a/ortools/java/pom-sample.xml.in b/ortools/java/pom-sample.xml.in
index ace8914be6..16b6b7fdbc 100644
--- a/ortools/java/pom-sample.xml.in
+++ b/ortools/java/pom-sample.xml.in
@@ -48,17 +48,6 @@
http://github.com/google/or-tools/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
UTF-8
@JAVA_MAIN_CLASS@
@@ -129,6 +118,15 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+
+
diff --git a/ortools/java/pom-test.xml.in b/ortools/java/pom-test.xml.in
index acd4cd6e4d..bc8c1e961c 100644
--- a/ortools/java/pom-test.xml.in
+++ b/ortools/java/pom-test.xml.in
@@ -48,17 +48,6 @@
http://github.com/google/or-tools/issues
-
-
- ossrh
- https://oss.sonatype.org/content/repositories/snapshots
-
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
-
-
UTF-8
1.8
@@ -168,6 +157,15 @@
+
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.9.0
+ true
+
+ central
+
+
diff --git a/tools/release/settings.xml.enc b/tools/release/settings.xml.enc
index faf3d35b85..366dfc971e 100644
Binary files a/tools/release/settings.xml.enc and b/tools/release/settings.xml.enc differ