123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515 |
- <?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>com.studio.nx</groupId>
- <artifactId>yxl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>yxl</name>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.5.0</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <properties>
- <java.version>1.8</java.version>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
- <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
- <project.build.locales>zh_CN</project.build.locales>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <skipTests>true</skipTests> <!-- 项目打包的时候跳过单元测试 -->
- <spring-cloud-starter-openfeign.version>3.0.2</spring-cloud-starter-openfeign.version>
- <spring-boot-admin.version>2.4.1</spring-boot-admin.version>
- <springfox-boot-starter.version>3.0.0</springfox-boot-starter.version>
- <mybatis-plus-boot-starter.version>3.4.3</mybatis-plus-boot-starter.version>
- <com.google.zxing.core.version>3.3.3</com.google.zxing.core.version>
- <lombok.version>1.18.20</lombok.version>
- <mapstruct.version>1.4.2.Final</mapstruct.version>
- <fastjson.version>1.2.76</fastjson.version>
- <logback-gelf.version>3.0.0</logback-gelf.version>
- <docker.image.prefix>/</docker.image.prefix>
- <start-class>com.studio.nx.Application</start-class>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-dto</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-entity</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-error</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-i18n</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-jwt</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-log</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-swagger</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-framework-util</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-uiac</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-address</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-app</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-business-config</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-data-dict</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-feedback</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-help</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-lab</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-notice</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-oss</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-pay</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>com.studio.nx</groupId>
- <artifactId>nx-service-swagger</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-openfeign</artifactId>
- <version>${spring-cloud-starter-openfeign.version}</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-validation</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-redis</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- <optional> true</optional>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
- <dependency>
- <groupId>de.codecentric</groupId>
- <artifactId>spring-boot-admin-starter-client</artifactId>
- <version>${spring-boot-admin.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.junit.vintage</groupId>
- <artifactId>junit-vintage-engine</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-boot-starter</artifactId>
- <version>${springfox-boot-starter.version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.baomidou</groupId>
- <artifactId>mybatis-plus-boot-starter</artifactId>
- <version>${mybatis-plus-boot-starter.version}</version>
- </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>
- <!-- 官方封装 https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient -->
- <dependency>
- <groupId>com.github.wechatpay-apiv3</groupId>
- <artifactId>wechatpay-apache-httpclient</artifactId>
- <version>0.2.2</version>
- </dependency>
- <dependency>
- <groupId>com.google.code.gson</groupId>
- <artifactId>gson</artifactId>
- </dependency>
- <dependency>
- <groupId>com.google.zxing</groupId>
- <artifactId>core</artifactId>
- <version>${com.google.zxing.core.version}</version>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <optional>true</optional>
- <version>${lombok.version}</version>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct</artifactId>
- <version>${mapstruct.version}</version>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-jdk8</artifactId>
- <version>${mapstruct.version}</version>
- </dependency>
- <dependency>
- <groupId>org.mapstruct</groupId>
- <artifactId>mapstruct-processor</artifactId>
- <version>${mapstruct.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>de.siegmar</groupId>
- <artifactId>logback-gelf</artifactId>
- <version>${logback-gelf.version}</version>
- </dependency>
- </dependencies>
- <build>
- <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>
- <!-- 获取Git版本信息的插件 -->
- <!-- <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>-->
- <!-- <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>-->
- <!-- </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>
- <mainClass>${start-class}</mainClass>
- <layout>ZIP</layout>
- <!-- add by 梁展鹏 20201124 打包优化把三方包剔除打包。通过离线上传至服务器 -->
- <!-- 只包含以下依赖打到产物jar中(项目内的) -->
- <!-- <includes>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-dto</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-entity</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-error</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-i18n</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-jwt</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-log</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-util</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-uiac</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-framework-swagger</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-address</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-app</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-business-config</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-data-dict</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-feedback</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-help</artifactId>-->
- <!-- </include>-->
- <!--<!– <include>–>-->
- <!--<!– <groupId>com.studio.nx</groupId>–>-->
- <!--<!– <artifactId>nx-im</artifactId>–>-->
- <!--<!– </include>–>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-lab</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-notice</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-oss</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-pay</artifactId>-->
- <!-- </include>-->
- <!-- <include>-->
- <!-- <groupId>com.studio.nx</groupId>-->
- <!-- <artifactId>nx-service-swagger</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>-->
- <!-- <excludeGroupIds>com.studio.nx</excludeGroupIds>-->
- <!-- <outputDirectory>${project.build.directory}/lib</outputDirectory>-->
- <!-- </configuration>-->
- <!-- </execution>-->
- <!-- </executions>-->
- <!-- </plugin>-->
- <!-- <plugin>-->
- <!-- <!– 拷贝资源文件 copy-resources –>-->
- <!-- <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}/resources</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>-->
- <!-- <nonFilteredFileExtensions>-->
- <!-- <nonFilteredFileExtension>xls</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>xlsx</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>doc</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>docx</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>zip</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>py</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>mov</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>mp4</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>psd</nonFilteredFileExtension>-->
- <!-- <!– 证书文件 –>-->
- <!-- <nonFilteredFileExtension>p12</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>pem</nonFilteredFileExtension>-->
- <!-- <nonFilteredFileExtension>pfx</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>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/java</directory>
- <includes>
- <include>**/*.*</include>
- </includes>
- </resource>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- <includes>
- <!-- 包含文件夹以及子文件夹下所有资源 -->
- <include>**/*.*</include>
- </includes>
- <excludes>
- <!-- 排除资源文件(注意会跟开发环境有关) -->
- </excludes>
- </resource>
- </resources>
- </build>
- </project>
|