|
25 | 25 |
|
26 | 26 | <!-- Classifier for the dependency report artifact --> |
27 | 27 | <dependencyReportClassifier>dependencies</dependencyReportClassifier> |
| 28 | + |
| 29 | + <analyticsQueriesVersion>1.1.0-SNAPSHOT</analyticsQueriesVersion> |
28 | 30 | </properties> |
29 | 31 |
|
30 | 32 | <modules> |
31 | 33 | <module>configs/superset</module> |
32 | 34 | </modules> |
33 | 35 |
|
34 | 36 | <dependencies> |
35 | | - |
36 | 37 | <!-- Ozone Cambodia Superset configs sub-module --> |
37 | 38 | <dependency> |
38 | 39 | <groupId>${project.groupId}</groupId> |
|
41 | 42 | <type>zip</type> |
42 | 43 | </dependency> |
43 | 44 |
|
| 45 | + <!-- Ozone Analytics Queries --> |
| 46 | + <dependency> |
| 47 | + <groupId>com.ozonehis</groupId> |
| 48 | + <artifactId>analytics-queries</artifactId> |
| 49 | + <version>${analyticsQueriesVersion}</version> |
| 50 | + <type>zip</type> |
| 51 | + </dependency> |
44 | 52 | </dependencies> |
45 | 53 |
|
46 | 54 | <build> |
|
131 | 139 | </executions> |
132 | 140 | </plugin> |
133 | 141 |
|
| 142 | + <plugin> |
| 143 | + <groupId>org.apache.maven.plugins</groupId> |
| 144 | + <artifactId>maven-dependency-plugin</artifactId> |
| 145 | + <version>2.8</version> |
| 146 | + <executions> |
| 147 | + <execution> |
| 148 | + <id>Copy Ozone Analytics Queries</id> |
| 149 | + <phase>generate-resources</phase> |
| 150 | + <goals> |
| 151 | + <goal>unpack-dependencies</goal> |
| 152 | + </goals> |
| 153 | + <configuration> |
| 154 | + <excludeTransitive>true</excludeTransitive> |
| 155 | + <useBaseVersion>true</useBaseVersion> |
| 156 | + <outputDirectory> |
| 157 | + ${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics</outputDirectory> |
| 158 | + <includeArtifactIds>analytics-queries</includeArtifactIds> |
| 159 | + </configuration> |
| 160 | + </execution> |
| 161 | + </executions> |
| 162 | + </plugin> |
| 163 | + |
| 164 | + <plugin> |
| 165 | + <artifactId>maven-antrun-plugin</artifactId> |
| 166 | + <executions> |
| 167 | + <execution> |
| 168 | + <id>Switch Ozone Analytics Queries to locale 'km'</id> |
| 169 | + <phase>generate-resources</phase> |
| 170 | + <goals> |
| 171 | + <goal>run</goal> |
| 172 | + </goals> |
| 173 | + <configuration> |
| 174 | + <target> |
| 175 | + <replaceregexp flags="g"> |
| 176 | + <regexp pattern="'en'"/> |
| 177 | + <substitution expression="'km'"/> |
| 178 | + <fileset dir="${project.build.directory}/${project.artifactId}-${project.version}/distro/configs/analytics" includes="**/*.sql"/> |
| 179 | + </replaceregexp> |
| 180 | + </target> |
| 181 | + </configuration> |
| 182 | + </execution> |
| 183 | + </executions> |
| 184 | + </plugin> |
| 185 | + |
134 | 186 | <!-- Compile a dependency report --> |
135 | 187 | <plugin> |
136 | 188 | <groupId>net.mekomsolutions.maven.plugin</groupId> |
|
0 commit comments