-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path0002-Include-Prometheus-emitter-in-distribution.patch
More file actions
65 lines (63 loc) · 3.17 KB
/
Copy path0002-Include-Prometheus-emitter-in-distribution.patch
File metadata and controls
65 lines (63 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From bd9e330c263c4934fdf1db5aab9ebaad052e96a1 Mon Sep 17 00:00:00 2001
From: xeniape <xenia.fischer@stackable.tech>
Date: Mon, 22 Sep 2025 14:23:11 +0200
Subject: Include Prometheus emitter in distribution
---
distribution/pom.xml | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/distribution/pom.xml b/distribution/pom.xml
index 51ce7563ea..c238ef8946 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -457,5 +457,51 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>stackable-bundle-contrib-exts</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>pull-deps-contrib-exts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <executable>${project.parent.basedir}/examples/bin/run-java</executable>
+ <arguments>
+ <argument>-classpath</argument>
+ <classpath />
+ <argument>-Ddruid.extensions.loadList=[]</argument>
+ <argument>-Ddruid.extensions.directory=${project.build.directory}/extensions
+ </argument>
+ <argument>
+ -Ddruid.extensions.hadoopDependenciesDir=${project.build.directory}/hadoop-dependencies
+ </argument>
+ <argument>org.apache.druid.cli.Main</argument>
+ <argument>tools</argument>
+ <argument>pull-deps</argument>
+ <argument>--defaultVersion</argument>
+ <argument>${project.parent.version}</argument>
+ <argument>-l</argument>
+ <argument>${settings.localRepository}</argument>
+ <argument>--no-default-hadoop</argument>
+ <argument>-c</argument>
+ <argument>org.apache.druid.extensions.contrib:prometheus-emitter</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>