mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-13 12:11:40 +08:00
323 lines
12 KiB
XML
323 lines
12 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>plus.bookshelf</groupId>
|
||
<artifactId>bookshelfplus</artifactId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
|
||
<name>bookshelfplus</name>
|
||
<url>http://bookshelf.plus/</url>
|
||
|
||
<!--引入SpringBoot-->
|
||
<parent>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<version>2.3.12.RELEASE</version>
|
||
</parent>
|
||
|
||
<properties>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<maven.compiler.source>1.7</maven.compiler.source>
|
||
<maven.compiler.target>1.7</maven.compiler.target>
|
||
</properties>
|
||
|
||
<repositories>
|
||
<repository>
|
||
<id>spring-releases</id>
|
||
<url>https://repo.spring.io/libs-release</url>
|
||
</repository>
|
||
</repositories>
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>spring-releases</id>
|
||
<url>https://repo.spring.io/libs-release</url>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.13.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!--引入SpringBoot-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<version>2.3.12.RELEASE</version>
|
||
</dependency>
|
||
|
||
<!--MySQL依赖-->
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>5.1.49</version>
|
||
</dependency>
|
||
|
||
<!--连接池(用于管理MySQL连接)-->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid</artifactId>
|
||
<version>1.2.8</version>
|
||
</dependency>
|
||
|
||
<!--MyBatis对SpringBoot的支持文件-->
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>2.2.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
<version>3.12.0</version>
|
||
</dependency>
|
||
|
||
<!--参数验证-->
|
||
<dependency>
|
||
<groupId>org.hibernate</groupId>
|
||
<artifactId>hibernate-validator</artifactId>
|
||
<version>6.2.3.Final</version>
|
||
</dependency>
|
||
|
||
<!--日期时间-->
|
||
<dependency>
|
||
<groupId>joda-time</groupId>
|
||
<artifactId>joda-time</artifactId>
|
||
<version>2.10.13</version>
|
||
</dependency>
|
||
|
||
<!--引入SpringBoot对Redis的依赖-->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency> -->
|
||
|
||
<!--SpringBoot将Session存储在Redis中-->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.session</groupId>
|
||
<artifactId>spring-session-data-redis</artifactId>
|
||
<version>2.0.5.RELEASE</version>
|
||
</dependency> -->
|
||
|
||
<!-- lombok -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<version>1.18.22</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
|
||
<!-- 腾讯云对象存储 https://github.com/tencentyun/cos-java-sdk-v5 -->
|
||
<dependency>
|
||
<groupId>com.qcloud</groupId>
|
||
<artifactId>cos_api</artifactId>
|
||
<version>5.6.69</version>
|
||
</dependency>
|
||
|
||
<!-- swagger
|
||
第一个是API获取的包,第二是官方给出的一个ui界面。三和四是spring boot 需要的jar包。
|
||
-->
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger2</artifactId>
|
||
<version>3.0.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-swagger-ui</artifactId>
|
||
<version>3.0.0</version>
|
||
</dependency>
|
||
<!-- 注意:3.0.0 需要starter -->
|
||
<dependency>
|
||
<groupId>io.springfox</groupId>
|
||
<artifactId>springfox-boot-starter</artifactId>
|
||
<version>3.0.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<version>2.6.4</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- Swagger 生成离线静态API文档
|
||
refer: https://blog.csdn.net/aiguoguo000/article/details/105681606
|
||
-->
|
||
<dependency>
|
||
<groupId>io.github.swagger2markup</groupId>
|
||
<artifactId>swagger2markup</artifactId>
|
||
<version>1.3.3</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.asciidoctor</groupId>
|
||
<artifactId>asciidoctorj-pdf</artifactId>
|
||
<version>1.6.2</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!--
|
||
PageHelper 分页插件
|
||
-->
|
||
<dependency>
|
||
<groupId>com.github.pagehelper</groupId>
|
||
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
||
<version>1.4.1</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
||
<plugins>
|
||
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
||
<plugin>
|
||
<artifactId>maven-clean-plugin</artifactId>
|
||
<version>3.1.0</version>
|
||
</plugin>
|
||
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
||
<plugin>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>3.0.2</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.8.0</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<version>2.22.1</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<version>3.0.2</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-install-plugin</artifactId>
|
||
<version>2.5.2</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-deploy-plugin</artifactId>
|
||
<version>2.8.2</version>
|
||
</plugin>
|
||
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
|
||
<plugin>
|
||
<artifactId>maven-site-plugin</artifactId>
|
||
<version>3.7.1</version>
|
||
</plugin>
|
||
<plugin>
|
||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||
<version>3.0.0</version>
|
||
</plugin>
|
||
|
||
<!--自动生成数据库的映射-->
|
||
<plugin>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||
<version>1.3.5</version>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-core</artifactId>
|
||
<version>1.3.5</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>mysql</groupId>
|
||
<artifactId>mysql-connector-java</artifactId>
|
||
<version>5.1.49</version>
|
||
</dependency>
|
||
</dependencies>
|
||
<executions>
|
||
<!--在package阶段做generate-->
|
||
<execution>
|
||
<id>mybatis generator</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>generate</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
|
||
<!--考虑到项目反复生成-->
|
||
<configuration>
|
||
<!--允许移动生成的文件-->
|
||
<verbose>true</verbose>
|
||
<!--自动覆盖文件-->
|
||
<overwrite>true</overwrite>
|
||
<!--mybatis配置文件路径-->
|
||
<configurationFile>
|
||
src/main/resources/mybatis-generator.xml
|
||
</configurationFile>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<!-- Swagger 生成离线静态API文档
|
||
refer: https://blog.csdn.net/aiguoguo000/article/details/105681606
|
||
-->
|
||
<plugin>
|
||
<groupId>io.github.swagger2markup</groupId>
|
||
<artifactId>swagger2markup-maven-plugin</artifactId>
|
||
<version>1.3.1</version>
|
||
<configuration>
|
||
<swaggerInput>http://localhost:8080/v2/api-docs</swaggerInput>
|
||
<outputDir>src/docs/asciidoc/generated</outputDir>
|
||
<config>
|
||
<swagger2markup.markupLanguage>ASCIIDOC</swagger2markup.markupLanguage>
|
||
</config>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.asciidoctor</groupId>
|
||
<artifactId>asciidoctor-maven-plugin</artifactId>
|
||
<version>1.5.6</version>
|
||
<configuration>
|
||
<!--asciidoc文件目录-->
|
||
<sourceDirectory>docs/asciidoc/generated</sourceDirectory>
|
||
<!---生成html的路径-->
|
||
<outputDirectory>docs/asciidoc/html</outputDirectory>
|
||
<backend>html</backend>
|
||
<sourceHighlighter>coderay</sourceHighlighter>
|
||
<attributes>
|
||
<!--导航栏在左-->
|
||
<toc>left</toc>
|
||
<!--显示层级数-->
|
||
<!--<toclevels>3</toclevels>-->
|
||
<!--自动打数字序号-->
|
||
<sectnums>true</sectnums>
|
||
</attributes>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
</plugins>
|
||
</pluginManagement>
|
||
<plugins>
|
||
<!--
|
||
添加SpringBoot打包plugin
|
||
解决【flashsale-1.0-SNAPSHOT.jar中没有主清单属性】问题
|
||
-->
|
||
<!-- <plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>2.4.3</version>
|
||
</plugin> -->
|
||
|
||
<!-- 拉姆达表达式需要支持 Java 8 语法 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<configuration>
|
||
<source>8</source>
|
||
<target>8</target>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|