272 lines
7.9 KiB
XML
272 lines
7.9 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.nbclass</groupId>
|
|
<artifactId>worktile</artifactId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
<packaging>war</packaging>
|
|
|
|
<name>worktile</name>
|
|
<url>http://maven.apache.org</url>
|
|
|
|
<parent>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<version>2.3.9.RELEASE</version>
|
|
<relativePath/>
|
|
</parent>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
<java.version>1.8</java.version>
|
|
<mapper.starter.version>2.1.5</mapper.starter.version>
|
|
<pagehelper.starter.version>1.3.0</pagehelper.starter.version>
|
|
<poi.version>3.12</poi.version>
|
|
<mysql.version>8.0.23</mysql.version>
|
|
<druid.springboot.version>1.2.5</druid.springboot.version>
|
|
<fastjson.version>1.2.75</fastjson.version>
|
|
<ognl.version>3.2.19</ognl.version>
|
|
<commons-fileupload.version>1.4</commons-fileupload.version>
|
|
<shiro-redis.version>3.3.1</shiro-redis.version>
|
|
<shiro-spring.version>1.7.1</shiro-spring.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<!-- jsp解析依赖,不加这个访问jsp直接变成下载 -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jstl</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.tomcat.embed</groupId>
|
|
<artifactId>tomcat-embed-jasper</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.tomcat</groupId>
|
|
<artifactId>tomcat-jsp-api</artifactId>
|
|
</dependency>
|
|
<!-- jsp解析依赖 end -->
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
<exclusions>
|
|
<exclusion><!-- 去掉springboot默认的logback, 使用log4j2 -->
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-logging</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<!-- 引入log4j2依赖 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-log4j2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</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>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
<version>2.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Druid Spring Boot Starter -->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
<version>${druid.springboot.version}</version>
|
|
</dependency>
|
|
|
|
<!--mapper-->
|
|
<dependency>
|
|
<groupId>tk.mybatis</groupId>
|
|
<artifactId>mapper-spring-boot-starter</artifactId>
|
|
<version>${mapper.starter.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<!-- 这个persistence-api-1.0.jar与Spring Data JPA引入的javax.persistence-api-2.2.jar有冲突 -->
|
|
<groupId>javax.persistence</groupId>
|
|
<artifactId>persistence-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!--pagehelper-->
|
|
<dependency>
|
|
<groupId>com.github.pagehelper</groupId>
|
|
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
<version>${pagehelper.starter.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.shiro</groupId>
|
|
<artifactId>shiro-spring</artifactId>
|
|
<version>${shiro-spring.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.theborakompanioni</groupId>
|
|
<artifactId>thymeleaf-extras-shiro</artifactId>
|
|
<version>2.0.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.crazycake</groupId>
|
|
<artifactId>shiro-redis</artifactId>
|
|
<version>${shiro-redis.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<artifactId>shiro-core</artifactId>
|
|
<groupId>org.apache.shiro</groupId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.penggle</groupId>
|
|
<artifactId>kaptcha</artifactId>
|
|
<version>2.3.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>fastjson</artifactId>
|
|
<version>${fastjson.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.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>ognl</groupId>
|
|
<artifactId>ognl</artifactId>
|
|
<version>${ognl.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 整合 Elasticsearch -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<!-- 测试用, 配置devtools实现热部署 -->
|
|
<!--
|
|
会导致ClassCastException异常
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
<optional>true</optional>
|
|
<scope>true</scope>
|
|
</dependency>
|
|
-->
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>worktile</finalName>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.mybatis.generator</groupId>
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
<version>1.3.7</version>
|
|
<configuration>
|
|
<configurationFile>${basedir}/src/main/resources/generator/generatorConfig.xml</configurationFile>
|
|
<overwrite>true</overwrite>
|
|
<verbose>true</verbose>
|
|
</configuration>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>tk.mybatis</groupId>
|
|
<artifactId>mapper-generator</artifactId>
|
|
<version>1.1.5</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|