From b1842eb0025b82561311f82819c1271cdb60d65b Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 10 Dec 2024 10:12:54 -0500 Subject: [PATCH] fix: fixed the profile for Artifact Registry deployment The java-shared-config repository was able to publish the artifacts to my Artifact Registry: mvn deploy -P=release-gcp-artifact-registry -P=-release-sonatype \ -P=-release-staging-repository -Dartifact-registry-url=artifactregistry://us-maven.pkg.dev/... --- java-shared-config/pom.xml | 12 ------ native-image-shared-config/pom.xml | 60 +++++++++++++++++++++++++++--- 2 files changed, 54 insertions(+), 18 deletions(-) diff --git a/java-shared-config/pom.xml b/java-shared-config/pom.xml index 9b5c361d..b8b5dc5e 100644 --- a/java-shared-config/pom.xml +++ b/java-shared-config/pom.xml @@ -381,18 +381,6 @@ - - - - com.google.cloud.artifactregistry - artifactregistry-maven-wagon - 2.2.3 - - diff --git a/native-image-shared-config/pom.xml b/native-image-shared-config/pom.xml index d21602e1..5058a5f1 100644 --- a/native-image-shared-config/pom.xml +++ b/native-image-shared-config/pom.xml @@ -99,14 +99,62 @@ - - - org.sonatype.plugins - nexus-staging-maven-plugin - - + + + + com.google.cloud.artifactregistry + artifactregistry-maven-wagon + 2.2.3 + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + + + + + + release-gcp-artifact-registry + + artifactregistry://undefined-artifact-registry-url-value + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + release