diff --git a/generator/src/googleapis/codegen/languages/java/1.26.0/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.26.0/templates/_pom_xml.tmpl
index 44ade848af2..11927815955 100644
--- a/generator/src/googleapis/codegen/languages/java/1.26.0/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.26.0/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.6
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.5
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -116,6 +105,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/1.27.0/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.27.0/templates/_pom_xml.tmpl
index 44ade848af2..11927815955 100644
--- a/generator/src/googleapis/codegen/languages/java/1.27.0/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.27.0/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.6
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.5
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -116,6 +105,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/1.28.0/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.28.0/templates/_pom_xml.tmpl
index 31513964670..59a46447889 100644
--- a/generator/src/googleapis/codegen/languages/java/1.28.0/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.28.0/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.7
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.5
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -115,6 +104,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/1.29.2/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.29.2/templates/_pom_xml.tmpl
index 31513964670..faecb28d888 100644
--- a/generator/src/googleapis/codegen/languages/java/1.29.2/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.29.2/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.7
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.5
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -115,6 +104,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/1.30.1/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.30.1/templates/_pom_xml.tmpl
index 1432633fa5d..4e726021d20 100644
--- a/generator/src/googleapis/codegen/languages/java/1.30.1/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.30.1/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.7
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.5
- true
-
- ossrh
- https://oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -131,6 +120,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/1.31.0/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/1.31.0/templates/_pom_xml.tmpl
index 8baeb2e9059..203fa123c17 100644
--- a/generator/src/googleapis/codegen/languages/java/1.31.0/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/1.31.0/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.7
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.8
- true
-
- ossrh
- https://google.oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -131,6 +120,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts
diff --git a/generator/src/googleapis/codegen/languages/java/2.0.0/templates/_pom_xml.tmpl b/generator/src/googleapis/codegen/languages/java/2.0.0/templates/_pom_xml.tmpl
index 8baeb2e9059..d10ba7ec5d8 100644
--- a/generator/src/googleapis/codegen/languages/java/2.0.0/templates/_pom_xml.tmpl
+++ b/generator/src/googleapis/codegen/languages/java/2.0.0/templates/_pom_xml.tmpl
@@ -44,17 +44,6 @@
1.7
-
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.8
- true
-
- ossrh
- https://google.oss.sonatype.org/
- true
-
-
org.apache.maven.plugins
maven-source-plugin
@@ -131,6 +120,55 @@
+
+
+ release-sonatype
+
+
+
+ !artifact-registry-url
+
+
+
+
+
+ org.sonatype.plugins
+ nexus-staging-maven-plugin
+ 1.6.13
+ true
+
+ sonatype-nexus-staging
+ https://google.oss.sonatype.org/
+ false
+
+
+
+
+
+
+
+ release-gcp-artifact-registry
+
+ artifactregistry://please-define-artifact-registry-url-property
+
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+ gcp-artifact-registry-repository
+ ${artifact-registry-url}
+
+
+
release-sign-artifacts