|
|
@@ -130,49 +130,47 @@
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
- <groupId>com.github.shalousun</groupId>
|
|
|
- <artifactId>smart-doc-maven-plugin</artifactId>
|
|
|
- <version>2.3.1</version>
|
|
|
- <!--建议用最新版本-->
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.5.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>21</source>
|
|
|
+ <target>21</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>2.18.1</version>
|
|
|
+ <configuration>
|
|
|
+ <skipTests>true</skipTests>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ <version>2.8.2</version>
|
|
|
<configuration>
|
|
|
- <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
|
|
|
- <configFile>./src/main/resources/smart-doc.json</configFile>
|
|
|
- <!--指定项目名称-->
|
|
|
- <projectName>SmartDoc-Demo</projectName>
|
|
|
- <!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
|
|
|
- <excludes>
|
|
|
- <!--格式为:groupId:artifactId;参考如下-->
|
|
|
- <!--1.0.7版本开始你还可以用正则匹配排除,如:poi.* -->
|
|
|
- <exclude>com.alibaba:fastjson</exclude>
|
|
|
- </excludes>
|
|
|
- <!--自1.0.8版本开始,插件提供includes支持-->
|
|
|
- <!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
|
|
|
- <includes>
|
|
|
- <!--格式为:groupId:artifactId;参考如下-->
|
|
|
- <include>com.launch.system.controller.tool.product</include>
|
|
|
- </includes>
|
|
|
+ <skip>true</skip>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+
|
|
|
+ <configuration>
|
|
|
+
|
|
|
+ <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
|
|
|
+ <includeSystemScope>true</includeSystemScope>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|
|
|
- <!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
|
|
|
- <!--<phase>compile</phase>-->
|
|
|
<goals>
|
|
|
- <!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
|
|
|
- <!--<goal>html</goal>-->
|
|
|
+ <goal>repackage</goal>
|
|
|
</goals>
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.1</version>
|
|
|
- <configuration>
|
|
|
- <source>${java.version}</source>
|
|
|
- <target>${java.version}</target>
|
|
|
- <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|