Files
wlan-cloud-services/schema-generator/pom.xml
Rahul Sharma 6e67a94d02 TW-883: Update schema generator to produce 2 SQL scripts for Prov server
TW-884: Update generated SQL script with default Customer and location data
2020-07-16 17:31:09 -04:00

78 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>0.0.1-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>