Skip to content

Commit

Permalink
[INLONG-11444][Distribution] Fix the merging modules jars failure (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
aloyszhang authored Oct 31, 2024
1 parent 42e84da commit a05c6a4
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 30 deletions.
110 changes: 84 additions & 26 deletions inlong-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,6 @@
<inlong.root.dir>${project.parent.basedir}</inlong.root.dir>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.version}</version>
<configuration>
<executable>bash</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/script/backup_module_dependencies.sh</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>uncompress</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>flink-all-version</id>
Expand Down Expand Up @@ -103,6 +77,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.version}</version>
<configuration>
<executable>bash</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/script/backup_module_dependencies.sh</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>uncompress</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -144,6 +139,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.version}</version>
<configuration>
<executable>bash</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/script/backup_module_dependencies.sh</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>uncompress</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -185,6 +201,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.version}</version>
<configuration>
<executable>bash</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/script/backup_module_dependencies.sh</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>uncompress</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down Expand Up @@ -226,6 +263,27 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>${exec.maven.version}</version>
<configuration>
<executable>bash</executable>
<arguments>
<argument>+x</argument>
<argument>${basedir}/script/backup_module_dependencies.sh</argument>
</arguments>
</configuration>
<executions>
<execution>
<id>uncompress</id>
<goals>
<goal>exec</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down
10 changes: 6 additions & 4 deletions inlong-distribution/script/backup_module_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ filelist() {
}

# Get the current version for InLong
find_gz_file=`ls -l ./target/*bin.tar.gz |awk '{print $9}'`
prefix="apache-inlong-"
suffix="-bin.tar.gz"
find_gz_file=$(ls -l ./target/*bin.tar.gz |awk '{print $9}')
gz_file=$(basename "$find_gz_file")
name_length=`expr length $gz_file`
version_length=$(expr $name_length \- 15 \- 10)
project_version=`expr substr $gz_file 15 $version_length`
version_with_suffix="${gz_file#$prefix}"
project_version="${version_with_suffix%$suffix}"
echo "The current version for InLong is: $project_version"
projectpath="./target/apache-inlong-${project_version}-bin/apache-inlong-${project_version}"

# Generate the file "dependencys.txt"
Expand Down

0 comments on commit a05c6a4

Please sign in to comment.