You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by zh...@apache.org on 2026/09/23 11:52:03 UTC
(seatunnel) 06/08: [Fix][Release] Exclude build-generated artifacts from source release assemblies
This is an automated email from the ASF dual-hosted git repository.
hawk9821 pushed a commit to branch 3.0.0-release
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit f775f163d5b9f9ee88b6b90fc078c09ab7a28cd8
Author: zhangdonghao <ha...@qq.com>
AuthorDate: Wed Sep 23 13:47:31 2026 +0800
[Fix][Release] Exclude build-generated artifacts from source release assemblies
- Exclude .flattened-pom.xml and dependency-reduced-pom.xml generated at
module roots by flatten-maven-plugin and maven-shade-plugin during the
release build (see MASFRES-64)
- Exclude the compiled frontend bundle written into engine-server
resources by the frontend build
- Stop excluding **/*.zip so the 5 git-tracked e2e test resource zips
are shipped in the source release
- Re-add .gitignore/.gitattributes/.gitmodules that the assembly
default excludes dropped, so the archive matches git archive
- Fix edge-agent src archive base directory name
---
.../src/main/assembly/assembly-edge-agent-src.xml | 6 ++++
.../src/main/assembly/assembly-seatunnel-src.xml | 35 +++++++++++++++++++++-
2 files changed, 40 insertions(+), 1 deletion(-)
diff --git a/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml b/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml
index 3d415ff2f6..9ea988b161 100644
--- a/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml
+++ b/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml
@@ -39,6 +39,12 @@
</includes>
<excludes>
<exclude>**/target/**</exclude>
+ <!-- build-generated poms written at module roots by
+ flatten-maven-plugin and maven-shade-plugin during a
+ full build; they are gitignored and must not leak into
+ the source release -->
+ <exclude>**/.flattened-pom.xml</exclude>
+ <exclude>**/dependency-reduced-pom.xml</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/.project</exclude>
<exclude>**/.classpath</exclude>
diff --git a/seatunnel-dist/src/main/assembly/assembly-seatunnel-src.xml b/seatunnel-dist/src/main/assembly/assembly-seatunnel-src.xml
index 7452655beb..52a03f2fe2 100644
--- a/seatunnel-dist/src/main/assembly/assembly-seatunnel-src.xml
+++ b/seatunnel-dist/src/main/assembly/assembly-seatunnel-src.xml
@@ -42,10 +42,16 @@
<exclude>**/*.class</exclude>
<exclude>**/*.jar</exclude>
<exclude>**/*.war</exclude>
- <exclude>**/*.zip</exclude>
<exclude>**/*.tar</exclude>
<exclude>**/*.tar.gz</exclude>
+ <!-- build-generated poms written at module roots by
+ flatten-maven-plugin and maven-shade-plugin during a
+ full build; they are gitignored and must not leak into
+ the source release -->
+ <exclude>**/.flattened-pom.xml</exclude>
+ <exclude>**/dependency-reduced-pom.xml</exclude>
+
<!-- maven plugin ignore -->
<exclude>release.properties</exclude>
<exclude>**/pom.xml.releaseBackup</exclude>
@@ -56,6 +62,10 @@
frontend-maven-plugin, they are not part of the source release -->
<exclude>**/node_modules/**</exclude>
<exclude>**/node/**</exclude>
+ <!-- compiled frontend bundle generated into the engine-server
+ resources by the frontend build; not part of the source
+ release -->
+ <exclude>seatunnel-engine/seatunnel-engine-server/src/main/resources/ui/**</exclude>
<!--github ignore-->
<exclude>**/.github/**</exclude>
<exclude>**/.dlc.json</exclude>
@@ -87,5 +97,28 @@
<exclude>**/Thumbs.db</exclude>
</excludes>
</fileSet>
+ <!-- Re-add the git housekeeping files that the default excludes drop,
+ so the source archive matches `git archive` of the tag -->
+ <fileSet>
+ <directory>../</directory>
+ <useDefaultExcludes>false</useDefaultExcludes>
+ <includes>
+ <include>**/.gitignore</include>
+ <include>**/.gitattributes</include>
+ <include>**/.gitmodules</include>
+ </includes>
+ <excludes>
+ <exclude>**/target/**</exclude>
+ <exclude>**/node_modules/**</exclude>
+ <exclude>**/node/**</exclude>
+ <exclude>**/.git/**</exclude>
+ <exclude>**/.svn/**</exclude>
+ <exclude>**/.hg/**</exclude>
+ <exclude>**/.bzr/**</exclude>
+ <exclude>**/.github/**</exclude>
+ <exclude>**/.idea/**</exclude>
+ <exclude>**/.settings/**</exclude>
+ </excludes>
+ </fileSet>
</fileSets>
</assembly>