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

jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/amoro.git


The following commit(s) were added to refs/heads/master by this push:
     new a4a052ed9 [Improvement] Reduce release package size & deploy ams 
plugins (#3508)
a4a052ed9 is described below

commit a4a052ed9eb40594a89e73c84ca9c2bd470e2912
Author: ZhouJinsong <[email protected]>
AuthorDate: Fri Apr 11 17:41:59 2025 +0800

    [Improvement] Reduce release package size & deploy ams plugins (#3508)
    
    * Reduce release package size & deploy ams plugins
    
    * Skip trino doc plugin too when disable
---
 amoro-ams/pom.xml                              | 17 +----------------
 amoro-format-iceberg/pom.xml                   |  5 -----
 amoro-format-mixed/amoro-mixed-trino/pom.xml   |  8 ++++++++
 amoro-metrics/amoro-metrics-prometheus/pom.xml |  8 +-------
 amoro-optimizer/amoro-optimizer-flink/pom.xml  |  8 +-------
 amoro-optimizer/amoro-optimizer-spark/pom.xml  |  7 -------
 tools/releasing/create_binary_release.sh       |  2 +-
 7 files changed, 12 insertions(+), 43 deletions(-)

diff --git a/amoro-ams/pom.xml b/amoro-ams/pom.xml
index ebc862e40..8a0801406 100644
--- a/amoro-ams/pom.xml
+++ b/amoro-ams/pom.xml
@@ -309,22 +309,6 @@
             </exclusions>
         </dependency>
 
-        <!--  apache hudi dependencies -->
-        <dependency>
-            <groupId>org.apache.hudi</groupId>
-            <artifactId>hudi-java-client</artifactId>
-            <exclusions>
-                <exclusion>
-                    <groupId>org.apache.orc</groupId>
-                    <artifactId>orc-core</artifactId>
-                </exclusion>
-                <exclusion>
-                    <groupId>asm</groupId>
-                    <artifactId>asm</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-
         <!-- runtime dependencies -->
         <dependency>
             <groupId>org.apache.amoro</groupId>
@@ -436,6 +420,7 @@
             <groupId>io.kubernetes</groupId>
             <artifactId>client-java</artifactId>
             <version>15.0.1</version>
+            <scope>test</scope>
         </dependency>
 
         <dependency>
diff --git a/amoro-format-iceberg/pom.xml b/amoro-format-iceberg/pom.xml
index 7814644f8..8a33392f6 100644
--- a/amoro-format-iceberg/pom.xml
+++ b/amoro-format-iceberg/pom.xml
@@ -155,11 +155,6 @@
             <classifier>nohive</classifier>
         </dependency>
 
-        <dependency>
-            <groupId>org.apache.paimon</groupId>
-            <artifactId>paimon-bundle</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>com.github.jsqlparser</groupId>
             <artifactId>jsqlparser</artifactId>
diff --git a/amoro-format-mixed/amoro-mixed-trino/pom.xml 
b/amoro-format-mixed/amoro-mixed-trino/pom.xml
index 4cf7cd341..632e19919 100644
--- a/amoro-format-mixed/amoro-mixed-trino/pom.xml
+++ b/amoro-format-mixed/amoro-mixed-trino/pom.xml
@@ -603,6 +603,14 @@
                 </configuration>
             </plugin>
 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <skip>${skip-build-mixed-format-trino}</skip>
+                </configuration>
+            </plugin>
+
             <plugin>
                 <groupId>com.diffplug.spotless</groupId>
                 <artifactId>spotless-maven-plugin</artifactId>
diff --git a/amoro-metrics/amoro-metrics-prometheus/pom.xml 
b/amoro-metrics/amoro-metrics-prometheus/pom.xml
index 73670b475..d7a722596 100644
--- a/amoro-metrics/amoro-metrics-prometheus/pom.xml
+++ b/amoro-metrics/amoro-metrics-prometheus/pom.xml
@@ -58,6 +58,7 @@
                     <descriptorRefs>
                         <descriptorRef>jar-with-dependencies</descriptorRef>
                     </descriptorRefs>
+                    <attach>true</attach>
                 </configuration>
                 <executions>
                     <execution>
@@ -69,13 +70,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 </project>
\ No newline at end of file
diff --git a/amoro-optimizer/amoro-optimizer-flink/pom.xml 
b/amoro-optimizer/amoro-optimizer-flink/pom.xml
index b9ed069f1..353e47fc2 100644
--- a/amoro-optimizer/amoro-optimizer-flink/pom.xml
+++ b/amoro-optimizer/amoro-optimizer-flink/pom.xml
@@ -187,6 +187,7 @@
                     <descriptorRefs>
                         <descriptorRef>jar-with-dependencies</descriptorRef>
                     </descriptorRefs>
+                    <attach>true</attach>
                 </configuration>
                 <executions>
                     <execution>
@@ -198,13 +199,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 
diff --git a/amoro-optimizer/amoro-optimizer-spark/pom.xml 
b/amoro-optimizer/amoro-optimizer-spark/pom.xml
index 65288df2e..46a1dd8c4 100644
--- a/amoro-optimizer/amoro-optimizer-spark/pom.xml
+++ b/amoro-optimizer/amoro-optimizer-spark/pom.xml
@@ -144,13 +144,6 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
-            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/tools/releasing/create_binary_release.sh 
b/tools/releasing/create_binary_release.sh
index 0d801126d..50815007e 100644
--- a/tools/releasing/create_binary_release.sh
+++ b/tools/releasing/create_binary_release.sh
@@ -65,7 +65,7 @@ make_binary_release() {
   echo "Creating ${HADOOP_VERSION} binary release"
 
   # enable release profile here (to check for the maven version)
-  $MVN clean package ${HADOOP_PROFILE} -Pno-extended-disk-storage 
-Pfail-on-no-git-dir -pl ':dist' -am -Dgpg.skip -Dcheckstyle.skip=true 
-DskipTests
+  $MVN clean package ${HADOOP_PROFILE} -Pno-extended-disk-storage 
-Pfail-on-no-git-dir -Pno-plugin-bin -pl ':dist' -am -Dgpg.skip 
-Dcheckstyle.skip=true -DskipTests
 
   local 
TARGET_FILE="apache-amoro-${RELEASE_VERSION}-bin-${HADOOP_VERSION}.tar.gz"
   cp dist/target/apache-amoro-${RELEASE_VERSION}-bin.tar.gz 
${RELEASE_DIR}/${TARGET_FILE}

Reply via email to