Skip to content

Commit

Permalink
⚡ Commit content:
Browse files Browse the repository at this point in the history
- 增加 FastDFS 组件
- 调整 Maven 依赖关系
- 增加 FastDFS 测试模块,仅测试该功能,其中包括 Docker Compose 环境初始化
  • Loading branch information
tonycody committed Oct 25, 2023
1 parent 8b34023 commit 53ce891
Show file tree
Hide file tree
Showing 21 changed files with 492 additions and 403 deletions.
49 changes: 4 additions & 45 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,18 @@
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet-api.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- jakarta.servlet-api -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${jakarta.servlet-api.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- Apache commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>${commons-pool2.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- Tika -->
<dependency>
Expand Down Expand Up @@ -178,126 +172,91 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring-boot.version}</version>
<optional>true</optional>
</dependency>
<!--endregion-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<!--region 所有存储平台-->
<!-- 华为云 OBS -->
<dependency>
<groupId>com.huaweicloud</groupId>
<artifactId>esdk-obs-java</artifactId>
<version>${esdk-obs-java.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- Amazon S3 -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>${aws-java-sdk-s3.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- 阿里云 OSS -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>${aliyun-sdk-oss.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 百度云 BOS -->
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<version>${bce-java-sdk.version}</version>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- WebDAV -->
<dependency>
<groupId>com.github.lookfirst</groupId>
<artifactId>sardine</artifactId>
<version>${sardine.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- SFTP -->
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>${jsch.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- FTP -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- MinIO -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- 又拍云 USS -->
<dependency>
<groupId>com.upyun</groupId>
<artifactId>java-sdk</artifactId>
<version>${upyun-java-sdk.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- 腾讯云 COS -->
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>cos_api</artifactId>
<version>${cos_api.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- 七牛云 Kodo -->
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<version>${qiniu-java-sdk.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!-- 谷歌云 Google Cloud Platform Storage-->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>${google-cloud-storage.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- FastDFS -->
<dependency>
<groupId>io.github.rui8832</groupId>
<artifactId>fastdfs-client-java</artifactId>
<version>${fastdfs-client-java.version}</version>
<optional>true</optional>
</dependency>
<!--endregion-->
</dependencies>
Expand Down Expand Up @@ -329,11 +288,11 @@
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<flattenMode>ossrh</flattenMode>
<flattenMode>oss</flattenMode>
<updatePomFile>true</updatePomFile>
<pomElements>
<repositories>remove</repositories>
</pomElements>
<!-- <pomElements>-->
<!-- <repositories>remove</repositories>-->
<!-- </pomElements>-->
<outputDirectory>${project.build.directory}/.flattened</outputDirectory>
</configuration>
<executions>
Expand Down
41 changes: 8 additions & 33 deletions x-file-storage-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,173 +10,148 @@
<artifactId>x-file-storage-core</artifactId>

<dependencies>

<!-- javax.servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- jakarta.servlet-api -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- Apache commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 华为云 OBS -->
<dependency>
<groupId>com.huaweicloud</groupId>
<artifactId>esdk-obs-java</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- Amazon S3 -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 阿里云 OSS -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 百度云 BOS -->
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<scope>provided</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- WebDAV -->
<dependency>
<groupId>com.github.lookfirst</groupId>
<artifactId>sardine</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- SFTP -->
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- FTP -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- MinIO -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 又拍云 USS -->
<dependency>
<groupId>com.upyun</groupId>
<artifactId>java-sdk</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 腾讯云 COS -->
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>cos_api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 七牛云 Kodo -->
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- 谷歌云 Google Cloud Platform Storage-->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- FastDFS Storage -->
<dependency>
<groupId>io.github.rui8832</groupId>
<artifactId>fastdfs-client-java</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- <dependency>-->
<!-- <groupId>org.csource</groupId>-->
<!-- <artifactId>fastdfs-client</artifactId>-->
<!-- &lt;!&ndash; <version>${fastdfs-client-java.version}</version>&ndash;&gt;-->
<!-- <version>1.0</version>-->
<!-- <scope>system</scope>-->
<!-- <systemPath>C:/Users/XS/.m2/repository/org/csource/fastdfs-client/1.25/fastdfs-client-1.25.jar</systemPath>-->
<!-- <optional>true</optional>-->
<!-- </dependency>-->

<!--糊涂工具类核心-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
</dependency>

<!--糊涂工具类扩展-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-extra</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<!-- Tika -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
</dependency>

<!-- 图片处理 https://github.com/coobird/thumbnailator -->
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit 53ce891

Please sign in to comment.