363 lines
14 KiB
XML
363 lines
14 KiB
XML
<?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">
|
||
<parent>
|
||
<artifactId>common-fastbee</artifactId>
|
||
<groupId>com.fastbee</groupId>
|
||
<version>2.7.0</version>
|
||
</parent>
|
||
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>fastbee-common</artifactId>
|
||
|
||
<description>
|
||
common通用工具
|
||
</description>
|
||
|
||
<dependencies>
|
||
|
||
<!-- Spring框架基本的核心工具 -->
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-context-support</artifactId>
|
||
</dependency>
|
||
|
||
<!-- SpringWeb模块 -->
|
||
<dependency>
|
||
<groupId>org.springframework</groupId>
|
||
<artifactId>spring-web</artifactId>
|
||
</dependency>
|
||
|
||
<!-- spring security 安全认证 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-security</artifactId>
|
||
</dependency>
|
||
|
||
<!-- mybatis-plus -->
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-generator</artifactId>
|
||
<version>${mybatis-plus-generator.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.yulichang</groupId>
|
||
<artifactId>mybatis-plus-join-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.yulichang</groupId>
|
||
<artifactId>mybatis-plus-join-processor</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.github.linpeilie</groupId>
|
||
<artifactId>mapstruct-plus-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<!-- pagehelper 分页插件 -->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.github.pagehelper</groupId>-->
|
||
<!-- <artifactId>pagehelper-spring-boot-starter</artifactId>-->
|
||
<!-- </dependency>-->
|
||
|
||
<!-- 自定义验证注解 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
</dependency>
|
||
|
||
<!--常用工具类 -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
</dependency>
|
||
|
||
<!-- JSON工具类 -->
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.core</groupId>
|
||
<artifactId>jackson-databind</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 阿里JSON解析器 -->
|
||
<dependency>
|
||
<groupId>com.alibaba.fastjson2</groupId>
|
||
<artifactId>fastjson2</artifactId>
|
||
</dependency>
|
||
|
||
<!-- io常用工具类 -->
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 文件上传工具类 -->
|
||
<dependency>
|
||
<groupId>commons-fileupload</groupId>
|
||
<artifactId>commons-fileupload</artifactId>
|
||
</dependency>
|
||
|
||
<!-- excel工具 -->
|
||
<dependency>
|
||
<groupId>org.apache.poi</groupId>
|
||
<artifactId>poi-ooxml</artifactId>
|
||
</dependency>
|
||
|
||
<!-- yml解析器 -->
|
||
<dependency>
|
||
<groupId>org.yaml</groupId>
|
||
<artifactId>snakeyaml</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Token生成与解析-->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Jaxb -->
|
||
<dependency>
|
||
<groupId>javax.xml.bind</groupId>
|
||
<artifactId>jaxb-api</artifactId>
|
||
</dependency>
|
||
|
||
<!-- redis 缓存操作 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
|
||
<!-- pool 对象池 -->
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-pool2</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 解析客户端操作系统、浏览器等 -->
|
||
<dependency>
|
||
<groupId>eu.bitwalker</groupId>
|
||
<artifactId>UserAgentUtils</artifactId>
|
||
</dependency>
|
||
|
||
<!-- servlet包 -->
|
||
<dependency>
|
||
<groupId>javax.servlet</groupId>
|
||
<artifactId>javax.servlet-api</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.swagger</groupId>
|
||
<artifactId>swagger-annotations</artifactId>
|
||
<version>1.6.2</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.eclipse.paho</groupId>
|
||
<artifactId>org.eclipse.paho.client.mqttv3</artifactId>
|
||
<version>${pahomqtt.version}</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||
<artifactId>jackson-datatype-jsr310</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 工具类相关 -->
|
||
<dependency>
|
||
<groupId>com.google.guava</groupId>
|
||
<artifactId>guava</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>easyexcel-core</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 短信快捷包 -->
|
||
<dependency>
|
||
<groupId>org.dromara.sms4j</groupId>
|
||
<artifactId>sms4j-spring-boot-starter</artifactId>
|
||
<version>${sms4j.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mapstruct</groupId>
|
||
<artifactId>mapstruct</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mapstruct</groupId>
|
||
<artifactId>mapstruct-jdk8</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mapstruct</groupId>
|
||
<artifactId>mapstruct-processor</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.google.zxing</groupId>
|
||
<artifactId>core</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.google.zxing</groupId>
|
||
<artifactId>javase</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>de.schlichtherle.truelicense</groupId>
|
||
<artifactId>truelicense-core</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>commons-beanutils</groupId>
|
||
<artifactId>commons-beanutils</artifactId>
|
||
<version>1.9.4</version>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
|
||
<!-- 通用http接口模块-->
|
||
<dependency>
|
||
<groupId>com.dtflys.forest</groupId>
|
||
<artifactId>forest-spring-boot-starter</artifactId>
|
||
<version>${forest.version}</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>com.github.wvengen</groupId>
|
||
<artifactId>proguard-maven-plugin</artifactId>
|
||
<version>${proguard-plugin.version}</version>
|
||
<executions>
|
||
<!-- 以下配置说明执行mvn的package命令时候,会执行proguard-->
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>proguard</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<!-- 就是输入Jar的名称,我们要知道,代码混淆其实是将一个原始的jar,生成一个混淆后的jar,那么就会有输入输出。 -->
|
||
<injar>${project.build.finalName}.jar</injar>
|
||
<!-- 输出jar名称,输入输出jar同名的时候就是覆盖,也是比较常用的配置。 -->
|
||
<outjar>${project.build.finalName}.jar</outjar>
|
||
<!-- 是否混淆 默认是true -->
|
||
<obfuscate>true</obfuscate>
|
||
<!-- 配置一个文件,通常叫做proguard.cfg,该文件主要是配置options选项,也就是说使用proguard.cfg那么options下的所有内容都可以移到proguard.cfg中 -->
|
||
<proguardInclude>${project.basedir}/../proguard.cfg</proguardInclude>
|
||
<!-- 额外的jar包,通常是项目编译所需要的jar -->
|
||
<libs>
|
||
<lib>${java.home}/lib/rt.jar</lib>
|
||
<lib>${java.home}/lib/jce.jar</lib>
|
||
<lib>${java.home}/lib/jsse.jar</lib>
|
||
</libs>
|
||
<!-- 对输入jar进行过滤比如,如下配置就是对META-INFO文件不处理。 -->
|
||
<inLibsFilter>!META-INF/**,!META-INF/versions/9/**.class</inLibsFilter>
|
||
<!-- 这是输出路径配置,但是要注意这个路径必须要包括injar标签填写的jar -->
|
||
<outputDirectory>${project.basedir}/target</outputDirectory>
|
||
<!--这里特别重要,此处主要是配置混淆的一些细节选项,比如哪些类不需要混淆,哪些需要混淆-->
|
||
<options>
|
||
<!-- 可以在此处写option标签配置,不过我上面使用了proguardInclude,故而我更喜欢在proguard.cfg中配置 -->
|
||
</options>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
<!-- <build>-->
|
||
<!-- <resources>-->
|
||
<!-- <resource>-->
|
||
<!-- <directory>src/main/resources</directory>-->
|
||
<!-- <includes>-->
|
||
<!-- <include>**/*.jar</include>-->
|
||
<!-- </includes>-->
|
||
<!-- </resource>-->
|
||
<!-- </resources>-->
|
||
<!-- <plugins>-->
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>net.roseboy</groupId>-->
|
||
<!-- <artifactId>classfinal-maven-plugin</artifactId>-->
|
||
<!-- <version>${classfinal-plugin.version}</version>-->
|
||
<!-- <configuration>-->
|
||
<!-- <password>#</password><!– #表示启动时不需要密码,事实上对于代码混淆来说,这个密码没什么用,它只是一个启动密码 –>-->
|
||
<!-- <excludes>org.spring</excludes>-->
|
||
<!-- <packages>com.fastbee</packages>-->
|
||
<!-- </configuration>-->
|
||
<!-- <executions>-->
|
||
<!-- <execution>-->
|
||
<!-- <phase>package</phase>-->
|
||
<!-- <goals>-->
|
||
<!-- <goal>classFinal</goal>-->
|
||
<!-- </goals>-->
|
||
<!-- </execution>-->
|
||
<!-- </executions>-->
|
||
<!-- </plugin>-->
|
||
<!-- <!– Maven部署插件 –>-->
|
||
<!-- <plugin>-->
|
||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||
<!-- <artifactId>maven-deploy-plugin</artifactId>-->
|
||
<!-- <version>3.0.0</version>-->
|
||
<!-- <configuration>-->
|
||
<!-- <skip>true</skip> <!– 确保不跳过部署 –>-->
|
||
<!-- </configuration>-->
|
||
<!-- <executions>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>deploy-encrypted-jar</id>-->
|
||
<!-- <phase>deploy</phase>-->
|
||
<!-- <goals>-->
|
||
<!-- <goal>deploy-file</goal>-->
|
||
<!-- </goals>-->
|
||
<!-- <configuration>-->
|
||
<!-- <file>${project.build.directory}/${project.build.finalName}-encrypted.jar</file>-->
|
||
<!-- <groupId>${project.groupId}</groupId>-->
|
||
<!-- <artifactId>${project.artifactId}</artifactId>-->
|
||
<!-- <version>${project.version}</version>-->
|
||
<!-- <packaging>jar</packaging>-->
|
||
<!-- <url>${project.distributionManagement.repository.url}</url>-->
|
||
<!-- <repositoryId>${project.distributionManagement.repository.id}</repositoryId>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<!-- <execution>-->
|
||
<!-- <id>deploy-pom</id>-->
|
||
<!-- <phase>deploy</phase>-->
|
||
<!-- <goals>-->
|
||
<!-- <goal>deploy-file</goal>-->
|
||
<!-- </goals>-->
|
||
<!-- <configuration>-->
|
||
<!-- <file>${project.basedir}/pom.xml</file>-->
|
||
<!-- <groupId>${project.groupId}</groupId>-->
|
||
<!-- <artifactId>${project.artifactId}</artifactId>-->
|
||
<!-- <version>${project.version}</version>-->
|
||
<!-- <packaging>pom</packaging>-->
|
||
<!-- <url>${project.distributionManagement.repository.url}</url>-->
|
||
<!-- <repositoryId>${project.distributionManagement.repository.id}</repositoryId>-->
|
||
<!-- </configuration>-->
|
||
<!-- </execution>-->
|
||
<!-- </executions>-->
|
||
<!-- </plugin>-->
|
||
<!-- </plugins>-->
|
||
<!-- </build>-->
|
||
</project>
|