Skip to content

Commit

Permalink
Remove HdfsUnderFileSystemFactory from service loading in COSN UFS jar
Browse files Browse the repository at this point in the history
### What changes are proposed in this pull request?

Remove HdfsUnderFileSystemFactory from service loading in COSN UFS jar.

### Why are the changes needed?
Avoid loading HdfsUnderFileSystemFactory from
alluxio-underfs-cosn-*.jar.

### Does this PR introduce any user facing changes?
No.

pr-link: #17024
change-id: cid-ed0eeacd667ac1b0e14d95a0c5b1034416acfbea
  • Loading branch information
Haoning-Sun committed Mar 8, 2023
1 parent 0fd418a commit c9ed634
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions underfs/cosn/pom.xml
Expand Up @@ -69,6 +69,37 @@
<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>com.coderplus.maven.plugins</groupId>
Expand Down

0 comments on commit c9ed634

Please sign in to comment.