123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509 |
- <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>com.qmth.file</groupId>
- <artifactId>file-server</artifactId>
- <version>4.0.0.3</version>
- <packaging>jar</packaging>
- <name>file-server</name>
- <url>http://maven.apache.org</url>
- <!-- 属性 -->
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <java.version>1.8</java.version>
- <!-- <spring.boot.version>1.5.9.RELEASE</spring.boot.version>-->
- <!-- <mysql-connector.version>5.1.38</mysql-connector.version>-->
- <commons-lang.version>3.4</commons-lang.version>
- <commons-codec.version>1.9</commons-codec.version>
- <commons-io.version>2.4</commons-io.version>
- <commons-fileupload.version>1.3.1</commons-fileupload.version>
- <commons-logging.version>1.2</commons-logging.version>
- <commons-configuration.version>1.10</commons-configuration.version>
- <fastjson.version>1.2.15</fastjson.version>
- <gson.version>2.8.0</gson.version>
- <poi.version>3.9</poi.version>
- <httpclient.version>4.5.3</httpclient.version>
- <httpcore.version>4.4.6</httpcore.version>
- <async-http-client.version>1.8.3</async-http-client.version>
- <jxls.version>1.0.3</jxls.version>
- <jackson-mapper-asl.version>1.5.0</jackson-mapper-asl.version>
- <jackson-annotations.version>2.11.0</jackson-annotations.version>
- <jackson-core.version>2.11.0</jackson-core.version>
- <jackson-databind.version>2.11.0</jackson-databind.version>
- <!-- <druid-spring-boot-starter.version>1.1.2</druid-spring-boot-starter.version>-->
- <qmth.boot.version>1.0.3</qmth.boot.version>
- <nanoid.version>2.0.0</nanoid.version>
- <guava.version>27.1-jre</guava.version>
- <jetbrains.version>13.0</jetbrains.version>
- <httpmime.version>4.5.13</httpmime.version>
- <version-plugin.version>2.8.1</version-plugin.version>
- </properties>
- <!-- spring boot 总体依赖 -->
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.3.0.RELEASE</version>
- </parent>
- <!-- 依赖管理 -->
- <dependencyManagement>
- <dependencies>
- <!-- mysql驱动 -->
- <!-- <dependency>-->
- <!-- <groupId>mysql</groupId>-->
- <!-- <artifactId>mysql-connector-java</artifactId>-->
- <!-- <version>${mysql-connector.version}</version>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- <version>${commons-lang.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- <version>${gson.version}</version>
- </dependency>
- <!-- http client -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <version>${httpclient.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <version>${httpcore.version}</version>
- </dependency>
- <dependency>
- <groupId>com.ning</groupId>
- <artifactId>async-http-client</artifactId>
- <version>${async-http-client.version}</version>
- </dependency>
- <!-- POI 文档操作 -->
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-core</artifactId>
- <version>${jxls.version}</version>
- </dependency>
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-reader</artifactId>
- <version>${jxls.version}</version>
- </dependency>
- <!-- UE Editor上传依赖包 -->
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- <version>${commons-codec.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>${commons-io.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>${commons-fileupload.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>${commons-logging.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-configuration</groupId>
- <artifactId>commons-configuration</artifactId>
- <version>${commons-configuration.version}</version>
- </dependency>
- <!-- jackson -->
- <dependency>
- <groupId>org.codehaus.jackson</groupId>
- <artifactId>jackson-mapper-asl</artifactId>
- <version>${jackson-mapper-asl.version}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- <version>${jackson-annotations.version}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
- <version>${jackson-core.version}</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- <version>${jackson-databind.version}</version>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>core-solar</artifactId>
- <version>${qmth.boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>data-mybatis-plus</artifactId>
- <version>${qmth.boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>core-uid</artifactId>
- <version>${qmth.boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.aventrix.jnanoid</groupId>
- <artifactId>jnanoid</artifactId>
- <version>${nanoid.version}</version>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- <version>2.9.2</version>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>com.github.xiaoymin</groupId>-->
- <!-- <artifactId>swagger-bootstrap-ui</artifactId>-->
- <!-- <version>1.9.6</version>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>2.9.2</version>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jetbrains</groupId>
- <artifactId>annotations</artifactId>
- <version>${jetbrains.version}</version>
- <scope>compile</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpmime</artifactId>
- <version>${httpmime.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <dependencies>
- <!-- spring boot web支持 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-test</artifactId>
- </dependency>
- <!-- spring boot aop支持 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-aop</artifactId>
- </dependency>
- <!-- spring jdbc 支持 -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>com.aventrix.jnanoid</groupId>
- <artifactId>jnanoid</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
- <!-- pagehelper分页插件
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper</artifactId>
- <version>5.1.2</version>
- </dependency>
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
- <version>1.2.3</version>
- </dependency>
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>1.2.3</version>
- </dependency>
- -->
- <!-- mysql驱动 -->
- <!-- <dependency>-->
- <!-- <groupId>mysql</groupId>-->
- <!-- <artifactId>mysql-connector-java</artifactId>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>org.codehaus.jackson</groupId>
- <artifactId>jackson-mapper-asl</artifactId>
- </dependency>
- <!-- POI 文档操作 -->
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-core</artifactId>
- </dependency>
- <dependency>
- <groupId>net.sf.jxls</groupId>
- <artifactId>jxls-reader</artifactId>
- </dependency>
- <!-- UE Editor上传依赖包 -->
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-configuration</groupId>
- <artifactId>commons-configuration</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- </dependency>
- <dependency>
- <groupId>com.ning</groupId>
- <artifactId>async-http-client</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </dependency>
- <dependency>
- <groupId>com.vaadin.external.google</groupId>
- <artifactId>android-json</artifactId>
- <version>0.0.20131108.vaadin1</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>core-solar</artifactId>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>data-mybatis-plus</artifactId>
- </dependency>
- <dependency>
- <groupId>com.qmth.boot</groupId>
- <artifactId>core-uid</artifactId>
- </dependency>
- <dependency>
- <groupId>com.aventrix.jnanoid</groupId>
- <artifactId>jnanoid</artifactId>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>com.github.xiaoymin</groupId>-->
- <!-- <artifactId>swagger-bootstrap-ui</artifactId>-->
- <!-- <version>1.9.6</version>-->
- <!-- </dependency>-->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </dependency>
- <dependency>
- <groupId>org.jetbrains</groupId>
- <artifactId>annotations</artifactId>
- <version>${jetbrains.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpmime</artifactId>
- </dependency>
- </dependencies>
- <!-- 构建 -->
- <build>
- <finalName>file-server</finalName>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <!-- 资源根目录排除各环境的配置,使用单独的资源目录来指定 -->
- <excludes>
- <exclude>test/*</exclude>
- <exclude>production/*</exclude>
- <exclude>tpl/*</exclude>
- <exclude>application.properties</exclude>
- </excludes>
- <!-- 是否替换资源中的属性 -->
- <filtering>false</filtering>
- </resource>
- <resource>
- <directory>src/main/resources/${package.environment}</directory>
- <includes>
- <include>application.properties</include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>2.6.2</version>
- <configuration>
- <includeSystemScope>true</includeSystemScope>
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <encoding>UTF-8</encoding>
- <source>${java.version}</source>
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>versions-maven-plugin</artifactId>
- <version>${version-plugin.version}</version>
- <configuration>
- <generateBackupPoms>false</generateBackupPoms>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>3.2.0</version>
- <configuration>
- <encoding>UTF-8</encoding>
- <useDefaultDelimiters>false</useDefaultDelimiters>
- <delimiters>
- <delimiter>$[*]</delimiter>
- </delimiters>
- <!-- 过滤后缀不需要转码的文件后缀名pdf -->
- <nonFilteredFileExtensions>
- <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
- </nonFilteredFileExtensions>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <repositories>
- <repository>
- <id>spring-releases</id>
- <url>https://repo.spring.io/libs-release</url>
- </repository>
- <!-- 阿里云CDN -->
- <repository>
- <id>sonatype-nexus-staging</id>
- <name>Sonatype Nexus Staging</name>
- <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>spring-releases</id>
- <url>https://repo.spring.io/libs-release</url>
- </pluginRepository>
- </pluginRepositories>
- <!-- 定义打包环境变量,生产环境;开发环境 -->
- <profiles>
- <profile>
- <id>test</id>
- <properties>
- <package.environment>test</package.environment>
- </properties>
- </profile>
- <profile>
- <id>production</id>
- <properties>
- <package.environment>production</package.environment>
- </properties>
- </profile>
- <profile>
- <id>development</id>
- <properties>
- <package.environment></package.environment>
- </properties>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- </profile>
- </profiles>
- </project>
|