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 21, 2024
1 parent 541c6e5 commit e64c4ed
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,21 @@

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

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

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

<dependencies>
<!-- TODO: Add any implementation-specific dependencies -->
<dependency>
<groupId>com.ozonehis</groupId>
<artifactId>analytics-queries</artifactId>
<version>${analyticsQueriesVersion}</version>
<type>zip</type>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -75,6 +82,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 e64c4ed

Please sign in to comment.