Files
wlan-cloud-services/schema-generator/pom.xml
2021-05-26 17:59:41 -04:00

77 lines
4.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.telecominfraproject.wlan</groupId>
<artifactId>tip-wlan-cloud-root-pom</artifactId>
<version>1.2.0-SNAPSHOT</version>
<relativePath>../../wlan-cloud-root</relativePath>
</parent>
<artifactId>schema-generator</artifactId>
<properties>
<prov-postgres-user-db-sql-schema>prov_user_db_schema.sql</prov-postgres-user-db-sql-schema>
<prov-postgres-tables-sql-schema>prov_tables_aggregated_schema.sql</prov-postgres-tables-sql-schema>
<ssc-cassandra-sql-schema>ssc_aggregated_schema.cql</ssc-cassandra-sql-schema>
<jfrog-url>https://tip.jfrog.io/artifactory/tip-wlan-cloud-schemas</jfrog-url>
<jfrog-postgres-db-target-file-path>${project.version}/sql/cloud-sdk-schema-postgresql-db-user.sql</jfrog-postgres-db-target-file-path>
<jfrog-postgres-tables-target-file-path>${project.version}/sql/cloud-sdk-schema-postgresql-tables.sql</jfrog-postgres-tables-target-file-path>
<jfrog-cassandra-target-file-path>${project.version}/cql/cloud-sdk-schema-cassandra.cql</jfrog-cassandra-target-file-path>
</properties>
<build>
<plugins>
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<version>1.3.2</version>
<executions>
<execution><!-- Run our schema generation script -->
<id>Schema Aggregator Postgres</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.basedir}</workingDirectory>
<executable>bash</executable>
<arguments>
<argument>./src/main/resources/aggregate-schema-prov.sh</argument>
<argument>${prov-postgres-user-db-sql-schema}</argument>
<argument>${prov-postgres-tables-sql-schema}</argument>
<argument>${schema-repository-user}</argument>
<argument>${schema-repository-password}</argument>
<argument>${jfrog-url}</argument>
<argument>${jfrog-postgres-db-target-file-path}</argument>
<argument>${jfrog-postgres-tables-target-file-path}</argument>
</arguments>
</configuration>
</execution>
<execution><!-- Run our schema generation script -->
<id>Schema Aggregator Cassandra</id>
<phase>deploy</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${project.basedir}</workingDirectory>
<executable>bash</executable>
<arguments>
<argument>./src/main/resources/aggregate-schema-cassandra.sh</argument>
<argument>${ssc-cassandra-sql-schema}</argument>
<argument>${schema-repository-user}</argument>
<argument>${schema-repository-password}</argument>
<argument>${jfrog-url}</argument>
<argument>${jfrog-cassandra-target-file-path}</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>