From cb97bbc0b99f191ff3aea0c50a31d5bcb0fe12ab Mon Sep 17 00:00:00 2001 From: "Riabokon Stanislav(EPAM)" <stanislav_riabokon@epam.com> Date: Fri, 20 Nov 2020 07:46:26 -0500 Subject: [PATCH] GONRG-1192 Updated poms. --- .mvn/community-maven.settings.xml | 49 ++++++++++++++------- pom.xml | 53 +++++++++++++++-------- provider/partition-aws/pom.xml | 2 +- provider/partition-azure/pom.xml | 2 +- testing/.mvn/community-maven.settings.xml | 49 ++++++++++++++------- testing/partition-test-aws/pom.xml | 25 ++++------- testing/partition-test-azure/pom.xml | 26 ++++------- testing/partition-test-core/pom.xml | 25 ++++------- testing/pom.xml | 30 ++++++++++--- 9 files changed, 150 insertions(+), 111 deletions(-) diff --git a/.mvn/community-maven.settings.xml b/.mvn/community-maven.settings.xml index 262e3ddf7..6c83ff4bd 100644 --- a/.mvn/community-maven.settings.xml +++ b/.mvn/community-maven.settings.xml @@ -7,22 +7,38 @@ <activeByDefault>true</activeByDefault> </activation> <properties> - <gitlab-server>community-maven-via-job-token</gitlab-server> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-job-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-job-token</publish.releases.id> + + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.releases.url> </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 --> + 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> + <property> + <name>env.COMMUNITY_MAVEN_TOKEN</name> + </property> </activation> <properties> - <gitlab-server>community-maven-via-private-token</gitlab-server> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-private-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-private-token</publish.releases.id> + + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.releases.url> </properties> </profile> </profiles> @@ -52,15 +68,16 @@ </configuration> </server> - <server> - <id>azure-auth</id> - <configuration> - <tenant>${env.AZURE_TENANT_ID}</tenant> - <client>${env.AZURE_CLIENT_ID}</client> - <key>${env.AZURE_CLIENT_SECRET}</key> - <environment>AZURE</environment> - </configuration> - </server> + <server> + <id>azure-auth</id> + <configuration> + <tenant>${env.AZURE_TENANT_ID}</tenant> + <client>${env.AZURE_CLIENT_ID}</client> + <key>${env.AZURE_CLIENT_SECRET}</key> + <environment>AZURE</environment> + </configuration> + </server> </servers> </settings> + diff --git a/pom.xml b/pom.xml index af61b5909..bffbca15c 100644 --- a/pom.xml +++ b/pom.xml @@ -88,31 +88,12 @@ </pluginManagement> </build> - <repositories> - <repository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> - </repository> - </repositories> - <modules> <module>partition-core</module> <module>provider/partition-azure</module> <module>provider/partition-aws</module> </modules> - <distributionManagement> - <repository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> - </repository> - <snapshotRepository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> - </snapshotRepository> - - </distributionManagement> - <profiles> <profile> <id>partition-core</id> @@ -153,5 +134,39 @@ <module>provider/partition-aws</module> </modules> </profile> + <profile> + <id>Default</id> + <activation> + <property> + <name>!repo.releases.id</name> + </property> + </activation> + <properties> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-job-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-job-token</publish.releases.id> + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven</publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven</publish.releases.url> + </properties> + </profile> </profiles> + + <repositories> + <repository> + <id>${repo.releases.id}</id> + <url>${repo.releases.url}</url> + </repository> + </repositories> + + <distributionManagement> + <repository> + <id>${publish.releases.id}</id> + <url>${publish.releases.url}</url> + </repository> + <snapshotRepository> + <id>${publish.snapshots.id}</id> + <url>${publish.snapshots.url}</url> + </snapshotRepository> + </distributionManagement> </project> diff --git a/provider/partition-aws/pom.xml b/provider/partition-aws/pom.xml index f6b201832..b88bf7b95 100644 --- a/provider/partition-aws/pom.xml +++ b/provider/partition-aws/pom.xml @@ -22,7 +22,7 @@ <artifactId>partition</artifactId> <groupId>org.opengroup.osdu</groupId> <version>1.0.0</version> - <relativePath>../../</relativePath> + <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> diff --git a/provider/partition-azure/pom.xml b/provider/partition-azure/pom.xml index 6e8d259f2..f92bf2c84 100644 --- a/provider/partition-azure/pom.xml +++ b/provider/partition-azure/pom.xml @@ -6,7 +6,7 @@ <artifactId>partition</artifactId> <groupId>org.opengroup.osdu</groupId> <version>1.0.0</version> - <relativePath>../../</relativePath> + <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> diff --git a/testing/.mvn/community-maven.settings.xml b/testing/.mvn/community-maven.settings.xml index 262e3ddf7..6c83ff4bd 100644 --- a/testing/.mvn/community-maven.settings.xml +++ b/testing/.mvn/community-maven.settings.xml @@ -7,22 +7,38 @@ <activeByDefault>true</activeByDefault> </activation> <properties> - <gitlab-server>community-maven-via-job-token</gitlab-server> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-job-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-job-token</publish.releases.id> + + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.releases.url> </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 --> + 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> + <property> + <name>env.COMMUNITY_MAVEN_TOKEN</name> + </property> </activation> <properties> - <gitlab-server>community-maven-via-private-token</gitlab-server> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-private-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-private-token</publish.releases.id> + + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven + </publish.releases.url> </properties> </profile> </profiles> @@ -52,15 +68,16 @@ </configuration> </server> - <server> - <id>azure-auth</id> - <configuration> - <tenant>${env.AZURE_TENANT_ID}</tenant> - <client>${env.AZURE_CLIENT_ID}</client> - <key>${env.AZURE_CLIENT_SECRET}</key> - <environment>AZURE</environment> - </configuration> - </server> + <server> + <id>azure-auth</id> + <configuration> + <tenant>${env.AZURE_TENANT_ID}</tenant> + <client>${env.AZURE_CLIENT_ID}</client> + <key>${env.AZURE_CLIENT_SECRET}</key> + <environment>AZURE</environment> + </configuration> + </server> </servers> </settings> + diff --git a/testing/partition-test-aws/pom.xml b/testing/partition-test-aws/pom.xml index ebded165c..836fec111 100644 --- a/testing/partition-test-aws/pom.xml +++ b/testing/partition-test-aws/pom.xml @@ -17,6 +17,14 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <parent> + <groupId>org.opengroup.osdu</groupId> + <artifactId>os-partition-testing</artifactId> + <version>0.0.5-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + <modelVersion>4.0.0</modelVersion> <groupId>org.opengroup.osdu.partition</groupId> <artifactId>partition-test-aws</artifactId> @@ -87,22 +95,5 @@ </dependency> </dependencies> - <repositories> - <repository> - <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/221/packages/maven</url> - </repository> - <snapshotRepository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> - </snapshotRepository> - </distributionManagement> </project> diff --git a/testing/partition-test-azure/pom.xml b/testing/partition-test-azure/pom.xml index 4e20627fa..9c6bce0d6 100644 --- a/testing/partition-test-azure/pom.xml +++ b/testing/partition-test-azure/pom.xml @@ -18,6 +18,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.opengroup.osdu</groupId> + <artifactId>os-partition-testing</artifactId> + <version>0.0.5-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + <groupId>org.opengroup.osdu.partition</groupId> <artifactId>partition-test-azure</artifactId> <version>0.0.1-SNAPSHOT</version> @@ -69,22 +77,4 @@ </dependency> </dependencies> - <repositories> - <repository> - <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/221/packages/maven</url> - </repository> - <snapshotRepository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> - </snapshotRepository> - </distributionManagement> - </project> diff --git a/testing/partition-test-core/pom.xml b/testing/partition-test-core/pom.xml index 597abd317..654cea6c3 100644 --- a/testing/partition-test-core/pom.xml +++ b/testing/partition-test-core/pom.xml @@ -18,6 +18,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.opengroup.osdu</groupId> + <artifactId>os-partition-testing</artifactId> + <version>0.0.5-SNAPSHOT</version> + <relativePath>../pom.xml</relativePath> + </parent> + <groupId>org.opengroup.osdu.partition</groupId> <artifactId>partition-test-core</artifactId> <version>0.0.1-SNAPSHOT</version> @@ -63,22 +71,5 @@ </dependency> </dependencies> - <repositories> - <repository> - <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/221/packages/maven</url> - </repository> - <snapshotRepository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> - </snapshotRepository> - </distributionManagement> </project> diff --git a/testing/pom.xml b/testing/pom.xml index 22ac051d0..21f1a5c40 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -39,20 +39,38 @@ <repositories> <repository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url> + <id>${repo.releases.id}</id> + <url>${repo.releases.url}</url> </repository> </repositories> <distributionManagement> <repository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> + <id>${publish.releases.id}</id> + <url>${publish.releases.url}</url> </repository> <snapshotRepository> - <id>${gitlab-server}</id> - <url>https://community.opengroup.org/api/v4/projects/221/packages/maven</url> + <id>${publish.snapshots.id}</id> + <url>${publish.snapshots.url}</url> </snapshotRepository> </distributionManagement> + <profiles> + <profile> + <id>Default</id> + <activation> + <property> + <name>!repo.releases.id</name> + </property> + </activation> + <properties> + <repo.releases.id>community-maven-repo</repo.releases.id> + <publish.snapshots.id>community-maven-via-job-token</publish.snapshots.id> + <publish.releases.id>community-maven-via-job-token</publish.releases.id> + <repo.releases.url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</repo.releases.url> + <publish.snapshots.url>https://community.opengroup.org/api/v4/projects/221/packages/maven</publish.snapshots.url> + <publish.releases.url>https://community.opengroup.org/api/v4/projects/221/packages/maven</publish.releases.url> + </properties> + </profile> + </profiles> </project> -- GitLab