123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405 |
- <?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>
- <name>430-platform</name>
- <description>base project 4 spring-boot</description>
- <groupId>com.app</groupId>
- <artifactId>430-platform</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>jar</packaging>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.1.5.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <properties>
- <java-jwt.version>3.8.1</java-jwt.version>
- <springfox-swagger.version>2.9.2</springfox-swagger.version>
- <joda-time.version>2.10.3</joda-time.version>
- <bcprov-jdk16.version>1.46</bcprov-jdk16.version>
- <poi.version>4.1.0</poi.version>
- <poi-ooxml.version>4.1.0</poi-ooxml.version>
- <java.version>1.8</java.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <project.build.locales>zh_CN</project.build.locales>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
- <skipTests>true</skipTests> <!-- 项目打包的时候跳过单元测试 -->
- <docker.image.prefix>/</docker.image.prefix>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- <version>2.1.5.RELEASE</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-aop</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- <version>${springfox-swagger.version}</version>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>${springfox-swagger.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.66</version>
- </dependency>
- <dependency>
- <groupId>com.auth0</groupId>
- <artifactId>java-jwt</artifactId>
- <version>${java-jwt.version}</version>
- </dependency>
- <dependency>
- <groupId>org.bouncycastle</groupId>
- <artifactId>bcprov-jdk16</artifactId>
- <version>${bcprov-jdk16.version}</version>
- </dependency>
- <!-- 微信支付SDK -->
- <!-- SDK与DEMO下载-->
- <!-- https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=11_1 -->
- <!-- 以下为最沙雕的引入方式。因为微信好像没有推送到公网Maven服务。就算有也拉不了... -->
- <!-- [稍旧]https://mvnrepository.com/artifact/com.github.wxpay/wxpay-sdk/0.0.3 -->
- <!-- [最新]https://mvnrepository.com/artifact/com.github.wxpay/WXPay-SDK-Java/0.0.4 -->
- <!-- [最新]手动下载该jar包放在项目目录libs底下,也把plugin到includeSystemScope打开 -->
- <dependency>
- <groupId>com.github.wxpay</groupId>
- <artifactId>WXPay-SDK-Java</artifactId>
- <version>0.0.4</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/libs/WXPay-SDK-Java-0.0.4.jar</systemPath>
- </dependency>
- <!-- 微信支付SDK -->
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>3.3.2</version>
- </dependency>
- <!-- <dependency>-->
- <!-- <groupId>com.baomidou</groupId>-->
- <!-- <artifactId>mybatis-plus-generator</artifactId>-->
- <!-- <version>3.3.2</version>-->
- <!-- <scope>provided</scope><!– 打包不需要该依赖,在Mybatis反向生成代码中使用到... –>-->
- <!-- </dependency>-->
- <!-- todo spring-cloud-starter-druid-monitor druid-admin -->
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid-spring-boot-starter</artifactId>
- <version>1.2.4</version>
- </dependency>
- <!-- ========== ========== 工具类依赖 ========== ========== -->
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>cn.hutool</groupId>
- <artifactId>hutool-all</artifactId>
- <version>5.4.4</version>
- </dependency>
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- <version>${joda-time.version}</version>
- </dependency>
- <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-ooxml.version}</version>
- </dependency>
- <!-- 分析客户端信息的工具类-->
- <dependency>
- <groupId>eu.bitwalker</groupId>
- <artifactId>UserAgentUtils</artifactId>
- <version>1.20</version>
- </dependency>
- <!-- allow-bean-definition-overriding: true 不生效依赖-->
- <!-- <dependency>-->
- <!-- <groupId>org.springframework.cloud</groupId>-->
- <!-- <artifactId>spring-cloud-starter-bootstrap</artifactId>-->
- <!-- <version>3.1.3</version>-->
- <!-- </dependency>-->
- <!-- https://gitee.com/lionsoul/ip2region/ -->
- <dependency>
- <groupId>org.lionsoul</groupId>
- <artifactId>ip2region</artifactId>
- <version>1.7.2</version>
- </dependency>
- <!-- ========== ========== 工具类依赖 ========== ========== -->
- </dependencies>
- <repositories>
- <repository>
- <id>spring-milestones</id>
- <name>Spring Milestones</name>
- <url>https://repo.spring.io/libs-milestone</url>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>daily</updatePolicy>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- <checksumPolicy>warn</checksumPolicy>
- </snapshots>
- <layout>default</layout>
- </repository>
- </repositories>
- <build>
- <resources>
- <resource>
- <filtering>true</filtering>
- <directory>src/main/resources</directory>
- <includes>
- <!-- 包含文件夹以及子文件夹下所有资源 -->
- <include>**/*.*</include>
- </includes>
- <excludes>
- <!-- 排除资源文件(注意会跟开发环境有关) -->
- </excludes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <!-- 指定编译版本 -->
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <!-- maven打包时,跳过测试 -->
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <fork>true</fork> <!--热部署插件-->
- <includeSystemScope>true</includeSystemScope> <!-- 引入本地jar需要配置该变量使Maven也把本地jar进行打包 -->
- <mainClass>com.app.Application</mainClass>
- <layout>ZIP</layout>
- <!-- <includes>-->
- <!-- <!– 或者 依赖jar不打进项目jar包中 –>-->
- <!-- <include>-->
- <!-- <groupId>nothing</groupId>-->
- <!-- <artifactId>nothing</artifactId>-->
- <!-- </include>-->
- <!-- </includes>-->
- </configuration>
- <executions>
- <execution>
- <goals>
- <goal>
- repackage
- </goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- <plugin>-->
- <!-- <!– 拷贝依赖 copy-dependencies –>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-dependency-plugin</artifactId>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <id>copy-dependencies</id>-->
- <!-- <phase>package</phase>-->
- <!-- <goals>-->
- <!-- <goal>copy-dependencies</goal>-->
- <!-- </goals>-->
- <!-- <configuration>-->
- <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- </plugin>-->
- <!-- <plugin>-->
- <!-- <!– 拷贝资源文件 copy-resources –>-->
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
- <!-- <artifactId>maven-resources-plugin</artifactId>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <id>copy-resources</id>-->
- <!-- <phase>package</phase>-->
- <!-- <goals>-->
- <!-- <goal>copy-resources</goal>-->
- <!-- </goals>-->
- <!-- <configuration>-->
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>src/main/resources</directory>-->
- <!-- </resource>-->
- <!-- </resources>-->
- <!-- <outputDirectory>${project.build.directory}/conf</outputDirectory>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- <!–copy 脚本,把bin目录下的文件复制到,打包目录下–>-->
- <!-- <execution>-->
- <!-- <id>copy-bin</id>-->
- <!-- <phase>package</phase>-->
- <!-- <goals>-->
- <!-- <goal>copy-resources</goal>-->
- <!-- </goals>-->
- <!-- <configuration>-->
- <!-- <resources>-->
- <!-- <resource>-->
- <!-- <directory>bin/</directory>-->
- <!-- </resource>-->
- <!-- </resources>-->
- <!-- <outputDirectory>${project.build.directory}/bin</outputDirectory>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- <configuration>-->
- <!-- <encoding>UTF-8</encoding>-->
- <!-- <useDefaultDelimiters>false</useDefaultDelimiters>-->
- <!-- <delimiters>-->
- <!-- <delimiter>$[*]</delimiter>-->
- <!-- </delimiters>-->
- <!-- <!– 过滤后缀不需要转码的文件后缀名.crt/.p8 –>-->
- <!-- <nonFilteredFileExtensions>-->
- <!-- <nonFilteredFileExtension>crt</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>p8</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>xls</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>doc</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>docx</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>zip</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>py</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>db</nonFilteredFileExtension>-->
- <!-- </nonFilteredFileExtensions>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifestEntries>
- <SCM-Revision>${scmRevision}</SCM-Revision>
- <Built-Time>${buildTime}</Built-Time>
- </manifestEntries>
- </archive>
- <excludes>
- <exclude>*.conf</exclude>
- <exclude>*.yml</exclude>
- <exclude>*.xml</exclude>
- <exclude>*.properties</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- <plugin>-->
- <!-- <groupId>pl.project13.maven</groupId>-->
- <!-- <artifactId>git-commit-id-plugin</artifactId>-->
- <!-- <version>2.1.15</version>-->
- <!-- <executions>-->
- <!-- <execution>-->
- <!-- <goals>-->
- <!-- <goal>revision</goal>-->
- <!-- </goals>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- <configuration>-->
- <!-- <dateFormat>yyyy.MM.dd HH:mm:ss</dateFormat>-->
- <!-- <!– 是否生 git.properties 属性文件 –>-->
- <!-- <generateGitPropertiesFile>true</generateGitPropertiesFile>-->
- <!-- <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
- <!-- Docker maven plugin -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
- <dockerDirectory>src/main/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- <!-- Docker maven plugin -->
- </plugins>
- </build>
- </project>
|