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

wanghailin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 4617423e89 [Improve][Build] Put `seatunnel-hadoop3-3.1.4-uber.jar` 
into release binary package (#5743)
4617423e89 is described below

commit 4617423e89e32796c6f2d225361b4b08db818bdb
Author: Jia Fan <[email protected]>
AuthorDate: Sat Oct 28 10:59:12 2023 +0800

    [Improve][Build] Put `seatunnel-hadoop3-3.1.4-uber.jar` into release binary 
package (#5743)
---
 bin/install-plugin.cmd                            | 3 ---
 bin/install-plugin.sh                             | 4 ----
 seatunnel-dist/pom.xml                            | 9 +++++++++
 seatunnel-dist/src/main/assembly/assembly-bin.xml | 1 +
 4 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/bin/install-plugin.cmd b/bin/install-plugin.cmd
index 35cadf94c2..ed3a049898 100644
--- a/bin/install-plugin.cmd
+++ b/bin/install-plugin.cmd
@@ -25,7 +25,6 @@ echo Set SEATUNNEL_HOME to [%SEATUNNEL_HOME%]
 REM Connector default version is 2.3.3, you can also choose a custom version. 
eg: 2.1.2:  install-plugin.bat 2.1.2
 set "version=2.3.3"
 if not "%~1"=="" set "version=%~1"
-echo Install hadoop shade jar, usage version is %version%
 
 REM Create the lib directory
 if not exist "%SEATUNNEL_HOME%\lib" (
@@ -33,8 +32,6 @@ if not exist "%SEATUNNEL_HOME%\lib" (
     echo create lib directory
 )
 
-call "%SEATUNNEL_HOME%\mvnw.cmd" dependency:get 
-DgroupId="org.apache.seatunnel" -Dclassifier="optional" 
-DartifactId="seatunnel-hadoop3-3.1.4-uber" -Dversion="%version%" 
-Ddest="%SEATUNNEL_HOME%\lib"
-
 echo Install SeaTunnel connectors plugins, usage version is %version%
 
 REM Create the connectors directory
diff --git a/bin/install-plugin.sh b/bin/install-plugin.sh
index 569bbdd8ca..41a5c8a7ec 100755
--- a/bin/install-plugin.sh
+++ b/bin/install-plugin.sh
@@ -30,10 +30,6 @@ if [ -n "$1" ]; then
     version="$1"
 fi
 
-echo "Install hadoop shade jar, usage version is ${version}"
-
-${SEATUNNEL_HOME}/mvnw dependency:get -DgroupId=org.apache.seatunnel 
-Dclassifier=optional -DartifactId=seatunnel-hadoop3-3.1.4-uber 
-Dversion=${version} -Ddest=${SEATUNNEL_HOME}/lib
-
 echo "Install SeaTunnel connectors plugins, usage version is ${version}"
 
 # create the connectors directory
diff --git a/seatunnel-dist/pom.xml b/seatunnel-dist/pom.xml
index acc6a4fc32..a3f6ef2155 100644
--- a/seatunnel-dist/pom.xml
+++ b/seatunnel-dist/pom.xml
@@ -704,6 +704,15 @@
                     <version>${project.version}</version>
                     <scope>provided</scope>
                 </dependency>
+
+                <!-- hadoop jar -->
+                <dependency>
+                    <groupId>org.apache.seatunnel</groupId>
+                    <artifactId>seatunnel-hadoop3-3.1.4-uber</artifactId>
+                    <version>${project.version}</version>
+                    <classifier>optional</classifier>
+                    <scope>provided</scope>
+                </dependency>
             </dependencies>
             <build>
                 <finalName>apache-seatunnel-${project.version}</finalName>
diff --git a/seatunnel-dist/src/main/assembly/assembly-bin.xml 
b/seatunnel-dist/src/main/assembly/assembly-bin.xml
index 4f5e798691..30fc5a6336 100644
--- a/seatunnel-dist/src/main/assembly/assembly-bin.xml
+++ b/seatunnel-dist/src/main/assembly/assembly-bin.xml
@@ -168,6 +168,7 @@
             <unpack>false</unpack>
             <includes>
                 
<include>org.apache.seatunnel:seatunnel-transforms-v2:jar</include>
+                
<include>org.apache.seatunnel:seatunnel-hadoop3-3.1.4-uber:jar:*:optional</include>
             </includes>
             
<outputFileNameMapping>${artifact.file.name}</outputFileNameMapping>
             <outputDirectory>/lib</outputDirectory>

Reply via email to