You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
4.6 KiB
97 lines
4.6 KiB
<?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.github.ffq</groupId>
|
|
<artifactId>springtx</artifactId>
|
|
<version>1.0</version>
|
|
<parent>
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<version>2.2.6.RELEASE</version>
|
|
</parent>
|
|
<properties>
|
|
<java.version>1.8</java.version>
|
|
<maven.compiler.source>1.8</maven.compiler.source>
|
|
<maven.compiler.target>1.8</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
<version>1.9.7</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-jdbc</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.shalousun</groupId>
|
|
<artifactId>smart-doc-maven-plugin</artifactId>
|
|
<version>2.6.3</version>
|
|
<configuration>
|
|
<!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
|
|
<configFile>./src/main/resources/smart-doc.json</configFile>
|
|
<!--指定项目名称,推荐使用动态参数,例如${project.description}-->
|
|
<!--如果smart-doc.json中和此处都未设置projectName,2.3.4开始,插件自动采用pom中的projectName作为设置-->
|
|
<projectName>${project.description}</projectName>
|
|
<!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
|
|
<excludes>
|
|
<!--格式为:groupId:artifactId;参考如下-->
|
|
<!--也可以支持正则式如:com.alibaba:.* -->
|
|
<exclude>com.alibaba:fastjson</exclude>
|
|
</excludes>
|
|
<!--includes配置用于配置加载外部依赖源码,配置后插件会按照配置项加载外部源代码而不是自动加载所有,因此使用时需要注意-->
|
|
<!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
|
|
<includes>
|
|
<!-- 使用了mybatis-plus的Page分页需要include所使用的源码包 -->
|
|
<include>com.baomidou:mybatis-plus-extension</include>
|
|
<!-- 使用了mybatis-plus的IPage分页需要include mybatis-plus-core-->
|
|
<include>com.baomidou:mybatis-plus-core</include>
|
|
<!-- 如果配置了includes的情况下, 使用了jpa的分页需要include所使用的源码包 -->
|
|
<include>org.springframework.data:spring-data-commons</include>
|
|
</includes>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
|
|
<goal>html</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
</project>
|