|
28 | 28 |
|
29 | 29 | <!-- Classifier for the dependency report artifact --> |
30 | 30 | <dependencyReportClassifier>dependencies</dependencyReportClassifier> |
| 31 | + |
| 32 | + <analyticsQueriesVersion>1.1.0-SNAPSHOT</analyticsQueriesVersion> |
31 | 33 | </properties> |
32 | 34 |
|
33 | 35 | <modules> |
34 | 36 | <module>configs/superset</module> |
35 | 37 | </modules> |
36 | 38 |
|
37 | 39 | <dependencies> |
38 | | - |
39 | 40 | <!-- Ozone Cambodia Superset configs sub-module --> |
40 | 41 | <dependency> |
41 | 42 | <groupId>${project.groupId}</groupId> |
|
44 | 45 | <type>zip</type> |
45 | 46 | </dependency> |
46 | 47 |
|
| 48 | + <!-- Ozone Analytics Queries --> |
47 | 49 | <dependency> |
48 | 50 | <groupId>com.ozonehis</groupId> |
49 | 51 | <artifactId>${analyticQueriesArtifactId}</artifactId> |
|
155 | 157 | </executions> |
156 | 158 | </plugin> |
157 | 159 |
|
| 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 | + |
158 | 204 | <!-- Compile a dependency report --> |
159 | 205 | <plugin> |
160 | 206 | <groupId>net.mekomsolutions.maven.plugin</groupId> |
|
0 commit comments