Skip to content

Commit b79f123

Browse files
committed
KH-544: Added Ozone analytics queries + switching locale to 'km'
1 parent 13046f9 commit b79f123

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

base/pom.xml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828

2929
<!-- Classifier for the dependency report artifact -->
3030
<dependencyReportClassifier>dependencies</dependencyReportClassifier>
31+
32+
<analyticsQueriesVersion>1.1.0-SNAPSHOT</analyticsQueriesVersion>
3133
</properties>
3234

3335
<modules>
3436
<module>configs/superset</module>
3537
</modules>
3638

3739
<dependencies>
38-
3940
<!-- Ozone Cambodia Superset configs sub-module -->
4041
<dependency>
4142
<groupId>${project.groupId}</groupId>
@@ -44,6 +45,7 @@
4445
<type>zip</type>
4546
</dependency>
4647

48+
<!-- Ozone Analytics Queries -->
4749
<dependency>
4850
<groupId>com.ozonehis</groupId>
4951
<artifactId>${analyticQueriesArtifactId}</artifactId>
@@ -155,6 +157,50 @@
155157
</executions>
156158
</plugin>
157159

160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-dependency-plugin</artifactId>
163+
<version>2.8</version>
164+
<executions>
165+
<execution>
166+
<id>Copy Ozone Analytics Queries</id>
167+
<phase>generate-resources</phase>
168+
<goals>
169+
<goal>unpack-dependencies</goal>
170+
</goals>
171+
<configuration>
172+
<excludeTransitive>true</excludeTransitive>
173+
<useBaseVersion>true</useBaseVersion>
174+
<outputDirectory>
175+
${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics</outputDirectory>
176+
<includeArtifactIds>analytics-queries</includeArtifactIds>
177+
</configuration>
178+
</execution>
179+
</executions>
180+
</plugin>
181+
182+
<plugin>
183+
<artifactId>maven-antrun-plugin</artifactId>
184+
<executions>
185+
<execution>
186+
<id>Switch Ozone Analytics Queries to locale 'km'</id>
187+
<phase>generate-resources</phase>
188+
<goals>
189+
<goal>run</goal>
190+
</goals>
191+
<configuration>
192+
<target>
193+
<replaceregexp flags="g">
194+
<regexp pattern="'en'"/>
195+
<substitution expression="'km'"/>
196+
<fileset dir="${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics" includes="**/*.sql"/>
197+
</replaceregexp>
198+
</target>
199+
</configuration>
200+
</execution>
201+
</executions>
202+
</plugin>
203+
158204
<!-- Compile a dependency report -->
159205
<plugin>
160206
<groupId>net.mekomsolutions.maven.plugin</groupId>

0 commit comments

Comments
 (0)