Skip to content

Commit

Permalink
KH-544: Added Ozone analytics queries + switching locale to 'km'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga committed Jun 24, 2024
1 parent 13046f9 commit d6a80df
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@

<!-- Classifier for the dependency report artifact -->
<dependencyReportClassifier>dependencies</dependencyReportClassifier>

<analyticsQueriesVersion>1.1.0-SNAPSHOT</analyticsQueriesVersion>
</properties>

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

<dependencies>

<!-- Ozone Cambodia Superset configs sub-module -->
<dependency>
<groupId>${project.groupId}</groupId>
Expand All @@ -44,9 +45,16 @@
<type>zip</type>
</dependency>

<<<<<<< HEAD
<dependency>
<groupId>com.ozonehis</groupId>
<artifactId>${analyticQueriesArtifactId}</artifactId>
=======
<!-- Ozone Analytics Queries -->
<dependency>
<groupId>com.ozonehis</groupId>
<artifactId>analytics-queries</artifactId>
>>>>>>> KH-544: Added Ozone analytics queries + switching locale to 'km'
<version>${analyticsQueriesVersion}</version>
<type>zip</type>
</dependency>
Expand Down Expand Up @@ -155,6 +163,50 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>Copy Ozone Analytics Queries</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<excludeTransitive>true</excludeTransitive>
<useBaseVersion>true</useBaseVersion>
<outputDirectory>
${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics</outputDirectory>
<includeArtifactIds>analytics-queries</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>Switch Ozone Analytics Queries to locale 'km'</id>
<phase>generate-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<replaceregexp flags="g">
<regexp pattern="'en'"/>
<substitution expression="'km'"/>
<fileset dir="${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics" includes="**/*.sql"/>
</replaceregexp>
</target>
</configuration>
</execution>
</executions>
</plugin>

<!-- Compile a dependency report -->
<plugin>
<groupId>net.mekomsolutions.maven.plugin</groupId>
Expand Down

0 comments on commit d6a80df

Please sign in to comment.