diff --git a/.mvn/community-maven.settings.xml b/.mvn/community-maven.settings.xml new file mode 100644 index 0000000000000000000000000000000000000000..75718a6d51b789d04f859ab8906b094bfb76b825 --- /dev/null +++ b/.mvn/community-maven.settings.xml @@ -0,0 +1,55 @@ +<settings> + <profiles> + <profile> + <!-- This profile uses the CI-Token to authenticate with the server, and is the default case --> + <id>GitLab-Authenticate-With-Job-Token</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <gitlab-server>community-maven-via-job-token</gitlab-server> + </properties> + </profile> + + <profile> + <!-- This profile uses a personal token to authenticate, which is useful for local or manual runs. The + presence of the COMMUNITY_MAVEN_TOKEN variable triggers this and overrides the CI Token + based authentication --> + <id>GitLab-Authenticate-With-Private-Token</id> + <activation> + <property> + <name>env.COMMUNITY_MAVEN_TOKEN</name> + </property> + </activation> + <properties> + <gitlab-server>community-maven-via-private-token</gitlab-server> + </properties> + </profile> + </profiles> + + <servers> + <server> + <id>community-maven-via-job-token</id> + <configuration> + <httpHeaders> + <property> + <name>Job-Token</name> + <value>${env.CI_JOB_TOKEN}</value> + </property> + </httpHeaders> + </configuration> + </server> + + <server> + <id>community-maven-via-private-token</id> + <configuration> + <httpHeaders> + <property> + <name>Private-Token</name> + <value>${env.COMMUNITY_MAVEN_TOKEN}</value> + </property> + </httpHeaders> + </configuration> + </server> + </servers> +</settings> diff --git a/notification-core/pom.xml b/notification-core/pom.xml index 5c2b396d73d780672dfcbd78640b9b89d8ea0c6a..9837f78220d4641dec119009d44bb65ea6f21b03 100644 --- a/notification-core/pom.xml +++ b/notification-core/pom.xml @@ -41,17 +41,22 @@ <repositories> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> </repository> </repositories> + <distributionManagement> + <repository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </repository> + <snapshotRepository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </snapshotRepository> + </distributionManagement> + <dependencies> <dependency> <groupId>org.opengroup.osdu</groupId> diff --git a/pom.xml b/pom.xml index 5c7d53a1c8ed7599474834e2de018aed7fe668d3..616f52a0e177f3f4d2992ada482543c6e21bb3bd 100644 --- a/pom.xml +++ b/pom.xml @@ -62,14 +62,8 @@ <repositories> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> </repository> </repositories> @@ -80,9 +74,13 @@ <distributionManagement> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> </repository> + <snapshotRepository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </snapshotRepository> </distributionManagement> </project> diff --git a/provider/notification-gcp/pom.xml b/provider/notification-gcp/pom.xml index 553f71c285b08dfc613590a5c0d385eba3a0ee29..829d68252387d194a609da8cc2b41ec0c7920805 100644 --- a/provider/notification-gcp/pom.xml +++ b/provider/notification-gcp/pom.xml @@ -40,17 +40,22 @@ <repositories> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> </repository> </repositories> + <distributionManagement> + <repository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </repository> + <snapshotRepository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </snapshotRepository> + </distributionManagement> + <dependencies> <dependency> <groupId>org.opengroup.osdu</groupId> diff --git a/testing/notification-test-core/pom.xml b/testing/notification-test-core/pom.xml index d28ad3e27d773ce0edd086307da5962709d6e6d3..9de29d5b401a8a46488e1bd9246347e000fa606f 100644 --- a/testing/notification-test-core/pom.xml +++ b/testing/notification-test-core/pom.xml @@ -34,17 +34,22 @@ <repositories> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> </repository> </repositories> + <distributionManagement> + <repository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </repository> + <snapshotRepository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </snapshotRepository> + </distributionManagement> + <dependencies> <dependency> <groupId>javax.xml.bind</groupId> diff --git a/testing/notification-test-gcp/pom.xml b/testing/notification-test-gcp/pom.xml index 603471dd632717688eb1a2374b57192c32978e52..4066717ada6fc8230390480bb10ae19327e882f7 100644 --- a/testing/notification-test-gcp/pom.xml +++ b/testing/notification-test-gcp/pom.xml @@ -34,17 +34,22 @@ <repositories> <repository> - <id>os-core</id> - <url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</url> - <releases> - <enabled>true</enabled> - </releases> - <snapshots> - <enabled>true</enabled> - </snapshots> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> </repository> </repositories> + <distributionManagement> + <repository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </repository> + <snapshotRepository> + <id>${gitlab-server}</id> + <url>https://community.opengroup.org/api/v4/projects/143/packages/maven</url> + </snapshotRepository> + </distributionManagement> + <dependencies> <dependency> <groupId>org.opengroup.osdu.notification</groupId>