加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 19.66 KB
一键复制 编辑 原始数据 按行查看 历史
梦想i 提交于 2024-07-18 13:46 . Release:2.2.1
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.dromara.x-file-storage</groupId>
<artifactId>x-file-storage-parent</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>X File Storage</name>
<description>A File Storage Service</description>
<url>https://github.com/dromara/x-file-storage</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<id>XuYanwu</id>
<name>Xu Yanwu</name>
<email>1171736840@qq.com</email>
<roles>
<role>Owner</role>
</roles>
</developer>
<developer>
<id>kytrun</id>
<name>Kytrun</name>
<email>i@kytrun.com</email>
<roles>
<role>Contrib</role>
</roles>
</developer>
<developer>
<id>xs</id>
<name>Tony</name>
<email>tonycody@qq.com</email>
<url>https://tonycody.github.io</url>
<roles>
<role>Contrib</role>
</roles>
</developer>
<developer>
<id>dongfeng</id>
<name>dongfeng</name>
<email>dongfeng@51ddi.com</email>
<roles>
<role>Contrib</role>
</roles>
</developer>
<developer>
<id>yang37</id>
<name>yang37</name>
<email>yang37z@qq.com</email>
<roles>
<role>Contrib</role>
</roles>
</developer>
</developers>
<modules>
<module>x-file-storage-spring</module>
<module>x-file-storage-core</module>
<module>x-file-storage-solon</module>
</modules>
<scm>
<connection>scm:git:git@github.com:dromara/x-file-storage.git</connection>
<developerConnection>scm:git:git@github.com:dromara/x-file-storage.git</developerConnection>
<url>git@github.com:dromara/x-file-storage.git</url>
</scm>
<properties>
<revision>2.2.1</revision>
<!--region Maven Base-->
<maven.version>3.8.1</maven.version>
<java.version>8</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<!--endregion-->
<!-- Spring 组件 -->
<spring-boot.version>2.7.2</spring-boot.version>
<!-- Solon 组件 -->
<solon.version>2.8.4</solon.version>
<!--region 3rd SDK-->
<aliyun-sdk-oss.version>3.16.1</aliyun-sdk-oss.version>
<aws-java-sdk-s3.version>1.12.429</aws-java-sdk-s3.version>
<bce-java-sdk.version>0.10.251</bce-java-sdk.version>
<commons-net.version>3.9.0</commons-net.version>
<commons-pool2.version>2.11.1</commons-pool2.version>
<cos_api.version>5.6.137</cos_api.version>
<esdk-obs-java.version>3.22.12</esdk-obs-java.version>
<google-cloud-storage.version>2.20.1</google-cloud-storage.version>
<hutool.version>5.8.28</hutool.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<jakarta.servlet-api.version>5.0.0</jakarta.servlet-api.version>
<jsch.version>0.1.55</jsch.version>
<lombok.version>1.18.16</lombok.version>
<minio.version>8.5.2</minio.version>
<qiniu-java-sdk.version>7.12.1</qiniu-java-sdk.version>
<sardine.version>5.10</sardine.version>
<thumbnailator.version>0.4.20</thumbnailator.version>
<tika-core.version>2.4.1</tika-core.version>
<upyun-java-sdk.version>4.2.3</upyun-java-sdk.version>
<fastdfs-client-java.version>1.30-20230328</fastdfs-client-java.version>
<azure-storage-blob.version>12.23.1</azure-storage-blob.version>
<azure-storage-file-datalake.version>12.18.1</azure-storage-file-datalake.version>
<!--endregion-->
<!--region Maven Plugins-->
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
<sorter-maven-plugin.version>1.0.1</sorter-maven-plugin.version>
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
<maven-javadoc-plugin.version>3.6.0</maven-javadoc-plugin.version>
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
<nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version>
<flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
<maven-enforcer-plugin.version>3.3.0</maven-enforcer-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<spotless-maven-plugin.version>2.40.0</spotless-maven-plugin.version>
<palantir-java-format.version>2.38.0</palantir-java-format.version>
<!--endregion-->
</properties>
<dependencyManagement>
<dependencies>
<!--region 1rd-->
<dependency>
<groupId>org.dromara.x-file-storage</groupId>
<artifactId>x-file-storage-spring</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.dromara.x-file-storage</groupId>
<artifactId>x-file-storage-core</artifactId>
<version>${project.version}</version>
</dependency>
<!--endregion-->
<!-- javax.servlet-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.servlet-api.version}</version>
</dependency>
<!-- jakarta.servlet-api -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${jakarta.servlet-api.version}</version>
</dependency>
<!-- Apache commons-pool2 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>${commons-pool2.version}</version>
</dependency>
<!-- Tika -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>${tika-core.version}</version>
</dependency>
<!-- 图片处理 https://github.com/coobird/thumbnailator -->
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>${thumbnailator.version}</version>
</dependency>
<!--糊涂工具类核心-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-bom</artifactId>
<version>${hutool.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!--region Spring Boot-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!--endregion-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<!--region 所有存储平台-->
<!-- 华为云 OBS -->
<dependency>
<groupId>com.huaweicloud</groupId>
<artifactId>esdk-obs-java</artifactId>
<version>${esdk-obs-java.version}</version>
</dependency>
<!-- Amazon S3 -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-s3</artifactId>
<version>${aws-java-sdk-s3.version}</version>
</dependency>
<!-- 阿里云 OSS -->
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>${aliyun-sdk-oss.version}</version>
</dependency>
<!-- 百度云 BOS -->
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>bce-java-sdk</artifactId>
<version>${bce-java-sdk.version}</version>
</dependency>
<!-- WebDAV -->
<dependency>
<groupId>com.github.lookfirst</groupId>
<artifactId>sardine</artifactId>
<version>${sardine.version}</version>
</dependency>
<!-- SFTP -->
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>${jsch.version}</version>
</dependency>
<!-- FTP -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net.version}</version>
</dependency>
<!-- MinIO -->
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
<!-- 又拍云 USS -->
<dependency>
<groupId>com.upyun</groupId>
<artifactId>java-sdk</artifactId>
<version>${upyun-java-sdk.version}</version>
</dependency>
<!-- 腾讯云 COS -->
<dependency>
<groupId>com.qcloud</groupId>
<artifactId>cos_api</artifactId>
<version>${cos_api.version}</version>
</dependency>
<!-- 七牛云 Kodo -->
<dependency>
<groupId>com.qiniu</groupId>
<artifactId>qiniu-java-sdk</artifactId>
<version>${qiniu-java-sdk.version}</version>
</dependency>
<!-- 谷歌云 Google Cloud Platform Storage-->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>${google-cloud-storage.version}</version>
</dependency>
<!-- FastDFS -->
<dependency>
<groupId>io.github.rui8832</groupId>
<artifactId>fastdfs-client-java</artifactId>
<version>${fastdfs-client-java.version}</version>
</dependency>
<!-- Azure Blob -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>${azure-storage-blob.version}</version>
</dependency>
<!-- Azure File Data Lake 用于处理 ACL -->
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-file-datalake</artifactId>
<version>${azure-storage-file-datalake.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[11,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[${maven.version},)</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten-maven-plugin.version}</version>
<configuration>
<flattenMode>oss</flattenMode>
<updatePomFile>true</updatePomFile>
<outputDirectory>${project.build.directory}/.flattened</outputDirectory>
</configuration>
<executions>
<execution>
<id>flatten</id>
<goals>
<goal>flatten</goal>
</goals>
<phase>process-resources</phase>
</execution>
<execution>
<id>flatten.clean</id>
<goals>
<goal>clean</goal>
</goals>
<phase>clean</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version>
<configuration>
<java>
<palantirJavaFormat>
<version>${palantir-java-format.version}</version>
</palantirJavaFormat>
</java>
</configuration>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
</plugin>
<!-- 保持所有模块 pom.xml 标签风格一致 -->
<plugin>
<groupId>io.github.tonycody.maven.plugins</groupId>
<artifactId>sorter-maven-plugin</artifactId>
<version>${sorter-maven-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>sort</goal>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jdk9</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>${java.version}</maven.compiler.release>
</properties>
</profile>
<profile>
<id>test</id>
<modules>
<module>x-file-storage-tests</module>
</modules>
</profile>
<profile>
<id>release</id>
<distributionManagement>
<repository>
<id>oss</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>oss</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<!-- Source -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>${maven-source-plugin.version}</version>
<executions>
<execution>
<id>oss</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<!-- Javadoc -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<doclint>none</doclint>
</configuration>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<!-- Gpg Signature -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>oss</id>
<goals>
<goal>sign</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>oss</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化