|
21 | 21 | <maven.compiler.source>8</maven.compiler.source> |
22 | 22 | <maven.compiler.target>8</maven.compiler.target> |
23 | 23 |
|
| 24 | + <supersetConfigsArtifactId>ozone-cambodia-superset-configs</supersetConfigsArtifactId> |
| 25 | + |
24 | 26 | <!-- Classifier for the dependency report artifact --> |
25 | 27 | <dependencyReportClassifier>dependencies</dependencyReportClassifier> |
26 | 28 | </properties> |
|
30 | 32 | </modules> |
31 | 33 |
|
32 | 34 | <dependencies> |
33 | | - <!-- TODO: Add any implementation-specific dependencies --> |
| 35 | + |
| 36 | + <!-- Ozone Cambodia Superset configs sub-module --> |
| 37 | + <dependency> |
| 38 | + <groupId>${project.groupId}</groupId> |
| 39 | + <artifactId>${supersetConfigsArtifactId}</artifactId> |
| 40 | + <version>${project.version}</version> |
| 41 | + <type>zip</type> |
| 42 | + </dependency> |
| 43 | + |
34 | 44 | </dependencies> |
35 | 45 |
|
36 | 46 | <build> |
37 | 47 | <plugins> |
| 48 | + |
| 49 | + <plugin> |
| 50 | + <groupId>org.apache.maven.plugins</groupId> |
| 51 | + <artifactId>maven-dependency-plugin</artifactId> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <id>Unpack Cambodia Superset configs sub-module</id> |
| 55 | + <phase>generate-resources</phase> |
| 56 | + <goals> |
| 57 | + <goal>unpack-dependencies</goal> |
| 58 | + </goals> |
| 59 | + <configuration> |
| 60 | + <excludeTransitive>true</excludeTransitive> |
| 61 | + <outputDirectory> |
| 62 | + ${project.build.directory}/${project.artifactId}-${project.version}/configs/superset</outputDirectory> |
| 63 | + <includeArtifactIds>${supersetConfigsArtifactId}</includeArtifactIds> |
| 64 | + </configuration> |
| 65 | + </execution> |
| 66 | + </executions> |
| 67 | + </plugin> |
| 68 | + |
38 | 69 | <plugin> |
39 | 70 | <groupId>org.apache.maven.plugins</groupId> |
40 | 71 | <artifactId>maven-resources-plugin</artifactId> |
|
72 | 103 | </resources> |
73 | 104 | </configuration> |
74 | 105 | </execution> |
| 106 | + |
| 107 | + <execution> |
| 108 | + <!-- Override the inherited Maven Parent plugin execution to exclude Superset configs --> |
| 109 | + <!-- Override with local config files --> |
| 110 | + <id>Copy local resources</id> |
| 111 | + <phase>process-resources</phase> |
| 112 | + <goals> |
| 113 | + <goal>copy-resources</goal> |
| 114 | + </goals> |
| 115 | + <configuration> |
| 116 | + <outputDirectory> |
| 117 | + ${project.build.directory}/${project.artifactId}-${project.version}/distro/configs</outputDirectory> |
| 118 | + <overwrite>true</overwrite> |
| 119 | + <resources> |
| 120 | + <resource> |
| 121 | + <directory>${project.basedir}/configs</directory> |
| 122 | + <excludes> |
| 123 | + <exclude>.gitkeep</exclude> |
| 124 | + <exclude>superset/</exclude> |
| 125 | + </excludes> |
| 126 | + </resource> |
| 127 | + </resources> |
| 128 | + </configuration> |
| 129 | + </execution> |
| 130 | + |
75 | 131 | </executions> |
76 | 132 | </plugin> |
77 | 133 |
|
|
0 commit comments