mirror of
https://gitee.com/lakernote/easy-admin.git
synced 2026-09-03 13:37:29 +08:00
328 lines
11 KiB
XML
328 lines
11 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>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>2.3.7.RELEASE</version>
|
||
<relativePath/> <!-- lookup parent from repository -->
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>easy-admin</artifactId>
|
||
<version>1.0.0</version>
|
||
|
||
<properties>
|
||
<!-- 1.编译器和JRE的版本默认为1.5,强制指定为1.8 -->
|
||
<!-- 该配置并非Maven官方的配置,是SpringBoot官方做的,约等于下面2个设置1.8 -->
|
||
<java.version>1.8</java.version>
|
||
<!-- maven 编译代码使用的jdk版本 -->
|
||
<maven.compiler.source>1.8</maven.compiler.source>
|
||
<!-- maven 执行代码使用的jdk版本 -->
|
||
<maven.compiler.target>1.8</maven.compiler.target>
|
||
|
||
|
||
<!-- 2.指定编码字符集 解决中文乱码 -->
|
||
<!-- maven 编译使用的编码 -->
|
||
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
||
<!-- maven 进行项目构建使用的编码,避免中文乱码 -->
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<!-- maven 生成项目报告使用的编码 -->
|
||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||
|
||
<!-- 3.maven打包跳过测试 -->
|
||
<skipTests>true</skipTests>
|
||
<!-- 其他依赖组件版本 -->
|
||
<hutool.version>5.5.2</hutool.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<!-- web -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
<!-- 工具类 -->
|
||
<dependency>
|
||
<groupId>cn.hutool</groupId>
|
||
<artifactId>hutool-all</artifactId>
|
||
<version>${hutool.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<!-- mybatis -->
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||
<version>3.4.2</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-generator</artifactId>
|
||
<version>3.4.1</version>
|
||
</dependency>
|
||
|
||
<!-- 数据库连接池 -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid-spring-boot-starter</artifactId>
|
||
<version>1.2.5</version>
|
||
</dependency>
|
||
|
||
<!-- mysql -->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
</dependency>
|
||
|
||
<!-- aop -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-aop</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<!-- 接口文档 -->
|
||
<dependency>
|
||
<groupId>com.github.xiaoymin</groupId>
|
||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||
<!--在引用时请在maven中央仓库搜索2.X最新版本号-->
|
||
<version>2.0.8</version>
|
||
</dependency>
|
||
|
||
<!-- 认证授权 -->
|
||
<dependency>
|
||
<groupId>cn.dev33</groupId>
|
||
<artifactId>sa-token-spring-boot-starter</artifactId>
|
||
<version>1.24.0</version>
|
||
</dependency>
|
||
|
||
<!-- 应用监控 -->
|
||
<dependency>
|
||
<groupId>net.bull.javamelody</groupId>
|
||
<artifactId>javamelody-spring-boot-starter</artifactId>
|
||
<version>1.87.0</version>
|
||
</dependency>
|
||
|
||
<!-- Excel处理-->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>easyexcel</artifactId>
|
||
<version>2.2.8</version>
|
||
</dependency>
|
||
|
||
<!-- 邮箱 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-mail</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 参数校验 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
</dependency>
|
||
|
||
|
||
<!-- websocket -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 配置管理 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- 模板引擎freemarker -->
|
||
<dependency>
|
||
<groupId>org.freemarker</groupId>
|
||
<artifactId>freemarker</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-freemarker</artifactId>
|
||
</dependency>
|
||
<!-- 国产工作流引擎 -->
|
||
<dependency>
|
||
<groupId>com.github.snakerflow-starter</groupId>
|
||
<artifactId>snakerflow-spring-boot-starter</artifactId>
|
||
<version>1.0.6</version>
|
||
</dependency>
|
||
|
||
<!-- 验证码 -->
|
||
<dependency>
|
||
<groupId>com.github.whvcse</groupId>
|
||
<artifactId>easy-captcha</artifactId>
|
||
<version>1.6.2</version>
|
||
</dependency>
|
||
<!-- 根据ip获取归属地 -->
|
||
<dependency>
|
||
<groupId>org.lionsoul</groupId>
|
||
<artifactId>ip2region</artifactId>
|
||
<version>1.7.2</version>
|
||
</dependency>
|
||
<!-- nginx配置文件处理 -->
|
||
<dependency>
|
||
<groupId>com.github.odiszapc</groupId>
|
||
<artifactId>nginxparser</artifactId>
|
||
<version>0.9.6</version>
|
||
</dependency>
|
||
<!-- 图片处理 -->
|
||
<dependency>
|
||
<groupId>net.coobird</groupId>
|
||
<artifactId>thumbnailator</artifactId>
|
||
<version>0.4.14</version>
|
||
</dependency>
|
||
|
||
<!-- 报表引擎 -->
|
||
<dependency>
|
||
<groupId>com.syyai.spring.boot</groupId>
|
||
<artifactId>ureport-spring-boot-starter</artifactId>
|
||
<version>2.2.9</version>
|
||
</dependency>
|
||
|
||
<!-- test -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-module-junit4</artifactId>
|
||
<version>2.0.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<!-- PowerMock Mockito2 API -->
|
||
<dependency>
|
||
<groupId>org.powermock</groupId>
|
||
<artifactId>powermock-api-mockito2</artifactId>
|
||
<version>2.0.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
<!-- actuator -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>easyAdmin</finalName>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
<!-- 加入自定义打包配置 -->
|
||
<plugin>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<version>3.1.0</version>
|
||
<configuration>
|
||
<descriptors>
|
||
<!-- 配置 assembly.xml 的路径,一般放在项目根目录 -->
|
||
<descriptor>assembly/assembly.xml</descriptor>
|
||
</descriptors>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>make-assembly</id>
|
||
<!--execution:phase加入package后,则在执行maven package时就可以调用maven-assembly-plugin插件定义的打包方式。-->
|
||
<phase>package</phase>
|
||
<!-- 打包次数 -->
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
<!--MAVEN打包选择运行环境-->
|
||
<!-- 1:local(默认) 本地 2:dev 开发环境 3:test 测试环境 4:uat 用户验收测试 5.pro:生产环境-->
|
||
<profiles>
|
||
<profile>
|
||
<id>local</id>
|
||
<properties>
|
||
<profileActive>local</profileActive>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>dev</id>
|
||
<properties>
|
||
<profileActive>dev</profileActive>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>false</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>test</id>
|
||
<properties>
|
||
<profileActive>test</profileActive>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>false</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>uat</id>
|
||
<properties>
|
||
<profileActive>uat</profileActive>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>false</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
<profile>
|
||
<id>prod</id>
|
||
<properties>
|
||
<profileActive>prod</profileActive>
|
||
</properties>
|
||
<activation>
|
||
<activeByDefault>false</activeByDefault>
|
||
</activation>
|
||
</profile>
|
||
</profiles>
|
||
|
||
<repositories>
|
||
<!-- https://developer.aliyun.com/mvn/guide -->
|
||
<repository>
|
||
<id>aliyun-public</id>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>aliyun-public</id>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
</project> |