Skip to content

Commit

Permalink
Improve pom for shade plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
apc999 committed Jul 23, 2023
1 parent 4d4c7e2 commit 7c0e0bf
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 94 deletions.
4 changes: 4 additions & 0 deletions dora/shaded/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/LICENSE.*</exclude>
<exclude>META-INF/license/*</exclude>
<exclude>META-INF/NOTICE</exclude>
<exclude>META-INF/NOTICE.*</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
Expand Down
12 changes: 1 addition & 11 deletions dora/underfs/abfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,20 +74,10 @@
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>alluxio/underfs/hdfs/HdfsUnderFileSystemFactory.*</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
Expand Down
12 changes: 1 addition & 11 deletions dora/underfs/adl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,10 @@
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>alluxio/underfs/hdfs/HdfsUnderFileSystemFactory.*</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
Expand Down
11 changes: 1 addition & 10 deletions dora/underfs/cephfs-hadoop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,10 @@
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
Expand Down
60 changes: 25 additions & 35 deletions dora/underfs/cosn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,41 +65,31 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>alluxio/underfs/hdfs/HdfsUnderFileSystemFactory.*</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>alluxio/underfs/hdfs/HdfsUnderFileSystemFactory.*</exclude>
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
Expand Down
16 changes: 0 additions & 16 deletions dora/underfs/ozone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,6 @@
</excludes>
</artifactSet>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>commons-httpclient:commons-httpclient</artifact>
<excludes>
<exclude>META-INF/LICENSE.txt</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
Expand Down
4 changes: 4 additions & 0 deletions dora/underfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/LICENSE.*</exclude>
<exclude>META-INF/license/*</exclude>
<exclude>META-INF/NOTICE</exclude>
<exclude>META-INF/NOTICE.*</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
Expand Down
12 changes: 1 addition & 11 deletions dora/underfs/wasb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,10 @@
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>LICENSE</exclude>
<exclude>META-INF/LICENSE</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<!-- Because this module depends on alluxio-underfs-hdfs, eliminate HDFS factory implementation -->
<exclude>alluxio/underfs/hdfs/HdfsUnderFileSystemFactory.*</exclude>
</excludes>
</filter>
<filter>
<artifact>org.alluxio:alluxio-underfs-hdfs</artifact>
<excludes>
<exclude>META-INF/services/alluxio.underfs.UnderFileSystemFactory</exclude>
</excludes>
</filter>
Expand Down

0 comments on commit 7c0e0bf

Please sign in to comment.