This is an automated email from the ASF dual-hosted git repository.

ericpai pushed a commit to branch bugfix/iotdb-3544
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit a95ec971c91351b88544892e0d8437dec99eb239
Author: ericpai <[email protected]>
AuthorDate: Mon Jun 20 12:21:17 2022 +0800

    [IOTDB-3544] Packaging udf-api as dependency jar in build
---
 udf-api/pom.xml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/udf-api/pom.xml b/udf-api/pom.xml
index a3d5a42f2a..758e070285 100644
--- a/udf-api/pom.xml
+++ b/udf-api/pom.xml
@@ -28,4 +28,33 @@
     </parent>
     <modelVersion>4.0.0</modelVersion>
     <artifactId>udf-api</artifactId>
+    <profiles>
+        <profile>
+            <id>get-jar-with-dependencies</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>${maven.assembly.version}</version>
+                        <configuration>
+                            <descriptorRefs>
+                                
<descriptorRef>jar-with-dependencies</descriptorRef>
+                            </descriptorRefs>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>make-assembly</id>
+                                <!-- this is used for inheritance merges -->
+                                <phase>package</phase>
+                                <!-- bind to the packaging phase -->
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>

Reply via email to