This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new e992bd71e1 [e2e] Fix Cannot run program "zip" exception reported when
Windows system compiles #941 (#5190)
e992bd71e1 is described below
commit e992bd71e1b8ca6f630bd284d31be89756e2882f
Author: spbreak <[email protected]>
AuthorDate: Mon Mar 3 10:25:46 2025 +0800
[e2e] Fix Cannot run program "zip" exception reported when Windows system
compiles #941 (#5190)
---
paimon-e2e-tests/pom.xml | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/paimon-e2e-tests/pom.xml b/paimon-e2e-tests/pom.xml
index 70f23e36cd..1ba183588a 100644
--- a/paimon-e2e-tests/pom.xml
+++ b/paimon-e2e-tests/pom.xml
@@ -248,33 +248,34 @@ under the License.
</artifactItems>
</configuration>
</plugin>
-
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>3.1.0</version>
+ <artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>FLINK-31695</id>
<phase>process-resources</phase>
<goals>
- <goal>exec</goal>
+ <goal>run</goal>
</goals>
+ <configuration>
+ <!--
+ Due to FLINK-31695, we need to delete conflicting
classes from jar file.
+ Remove this work-around after we make our own e2e
docker image,
+ with both Flink and Hadoop in the same docker.
+ -->
+ <target>
+ <!-- Unzip the jar file to a temporary
directory -->
+ <unzip
src="/tmp/paimon-e2e-tests-jars/bundled-hadoop.jar" dest="target/temp"/>
+ <!-- Delete the conflicting file -->
+ <delete
file="target/temp/org/apache/commons/cli/CommandLine.class"/>
+ <!-- Repackage the modified content -->
+ <zip
destfile="/tmp/paimon-e2e-tests-jars/bundled-hadoop.jar" basedir="target/temp"/>
+ <!-- Delete the extracted temporary folder -->
+ <delete dir="target/temp"/>
+ </target>
+ </configuration>
</execution>
</executions>
- <configuration>
- <!--
- Due to FLINK-31695, we need to delete conflicting classes
from jar file.
- Remove this work-around after we make our own e2e docker
image,
- with both Flink and Hadoop in the same docker.
- -->
- <executable>zip</executable>
- <arguments>
- <argument>-d</argument>
-
<argument>/tmp/paimon-e2e-tests-jars/bundled-hadoop.jar</argument>
-
<argument>org/apache/commons/cli/CommandLine.class</argument>
- </arguments>
- </configuration>
</plugin>
</plugins>