Skip to content

Commit

Permalink
build fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiyanxiang committed Apr 26, 2024
1 parent 488a851 commit 271b8c5
Show file tree
Hide file tree
Showing 18 changed files with 665 additions and 523 deletions.
1 change: 1 addition & 0 deletions flink/flink-scala-2.12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
7 changes: 7 additions & 0 deletions python/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>

<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
Expand All @@ -148,6 +152,9 @@
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
<transformers>
Expand Down
3 changes: 3 additions & 0 deletions rlang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
<transformers>
Expand Down
3 changes: 3 additions & 0 deletions shell/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<configuration>
Expand Down
1 change: 1 addition & 0 deletions spark/interpreter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
3 changes: 3 additions & 0 deletions spark/scala-2.12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions zeppelin-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
5 changes: 5 additions & 0 deletions zeppelin-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
58 changes: 36 additions & 22 deletions zeppelin-distribution/src/assemble/distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,28 @@
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>zeppelin-${project.version}</baseDirectory>

<dependencySets>
<dependencySet>
<!-- Enable access to all projects in the current multimodule build!
<useAllReactorProjects>true</useAllReactorProjects> -->
<!-- Now, select which projects to include in this module-set. -->
<includes>
<include>${project.groupId}:zeppelin-web</include>
<include>${project.groupId}:zeppelin-web-angular</include>
</includes>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveDependencies>false</useTransitiveDependencies>
</dependencySet>
<dependencySet>
<outputDirectory>/lib</outputDirectory>
<excludes>
<exclude>${project.groupId}:zeppelin-web</exclude>
<exclude>${project.groupId}:zeppelin-web-angular</exclude>
</excludes>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
</dependencySet>
</dependencySets>
<!-- <dependencySets>-->
<!-- <dependencySet>-->
<!-- &lt;!&ndash; Enable access to all projects in the current multimodule build!-->
<!-- <useAllReactorProjects>true</useAllReactorProjects> &ndash;&gt;-->
<!-- &lt;!&ndash; Now, select which projects to include in this module-set. &ndash;&gt;-->
<!-- <includes>-->
<!-- <include>${project.groupId}:zeppelin-web</include>-->
<!-- <include>${project.groupId}:zeppelin-web-angular</include>-->
<!-- </includes>-->
<!-- <useProjectArtifact>false</useProjectArtifact>-->
<!-- <useTransitiveDependencies>false</useTransitiveDependencies>-->
<!-- </dependencySet>-->
<!-- <dependencySet>-->
<!-- <outputDirectory>/lib</outputDirectory>-->
<!-- <excludes>-->
<!-- <exclude>${project.groupId}:zeppelin-web</exclude>-->
<!-- <exclude>${project.groupId}:zeppelin-web-angular</exclude>-->
<!-- </excludes>-->
<!-- <useProjectArtifact>false</useProjectArtifact>-->
<!-- <useTransitiveFiltering>true</useTransitiveFiltering>-->
<!-- </dependencySet>-->
<!-- </dependencySets>-->

<fileSets>
<fileSet>
Expand Down Expand Up @@ -95,6 +95,20 @@
<fileSet>
<directory>../scripts</directory>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/zeppelin-server/target</directory>
<includes>
<include>zeppelin-server-*-standalone.jar</include>
</includes>
<outputDirectory>/lib</outputDirectory>
</fileSet>
<fileSet>
<directory>${project.parent.basedir}/zeppelin-web/target</directory>
<includes>
<include>zeppelin-web-*.war</include>
</includes>
<outputDirectory>./</outputDirectory>
</fileSet>
<fileSet>
<outputDirectory>/lib/node_modules/zeppelin-vis</outputDirectory>
<directory>../zeppelin-web/src/app/visualization</directory>
Expand Down
3 changes: 3 additions & 0 deletions zeppelin-interpreter-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@
</environmentVariables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
</plugins>
</build>

Expand Down
1 change: 1 addition & 0 deletions zeppelin-interpreter-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>org.apache.zeppelin:zeppelin-interpreter-shaded</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
1 change: 1 addition & 0 deletions zeppelin-interpreter-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
3 changes: 3 additions & 0 deletions zeppelin-interpreter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@

<build>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand Down
3 changes: 3 additions & 0 deletions zeppelin-jupyter-interpreter-shaded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
<transformers>
Expand Down
1 change: 1 addition & 0 deletions zeppelin-plugins/launcher/k8s-standard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/maven/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
Loading

0 comments on commit 271b8c5

Please sign in to comment.