Skip to content

Commit

Permalink
OZ-429: Superset configs to be a Maven sub-module
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuisson committed Jun 14, 2024
1 parent 5307bd5 commit 222a279
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
20 changes: 20 additions & 0 deletions distro/configs/superset/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<id>zip-superset-configs</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<outputDirectory>.</outputDirectory>
<directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
</fileSet>
</fileSets>
</assembly>
File renamed without changes.
95 changes: 95 additions & 0 deletions distro/configs/superset/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?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.ozonehis</groupId>
<artifactId>maven-commons</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../../maven-commons</relativePath>
</parent>

<artifactId>ozone-superset-configs</artifactId>
<name>Ozone Superset Configs</name>
<description>Superset configurations to be used in Ozone Analytics</description>
<packaging>pom</packaging>

<organization>
<name>Ozone HIS</name>
<url>https://www.ozone-his.com</url>
</organization>

<developers>
<developer>
<name>Mekom Solutions</name>
<url>https://www.mekomsolutions.com</url>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>

</dependencies>

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<!-- Copy Superset config resources -->
<id>Copy Superset configs</id>
<phase>process-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>./</directory>
<excludes>
<exclude>pom.xml</exclude>
<exclude>assembly.xml</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>

</executions>
</plugin>

<!-- Packaging the configs as a zip file -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>Package Superset configs</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
4 changes: 4 additions & 0 deletions distro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<dependencyReportClassifier>dependencies</dependencyReportClassifier>
</properties>

<modules>
<module>configs/superset</module>
</modules>

<dependencies>
<!-- OpenMRS Ref App -->
<dependency>
Expand Down

0 comments on commit 222a279

Please sign in to comment.