pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.1.10.RELEASE</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>cn.com.sailfish</groupId>
  12. <artifactId>linghang</artifactId>
  13. <version>1.0.0</version>
  14. <name>linghang</name>
  15. <packaging>jar</packaging>
  16. <description>Ling Hang project for Spring Boot</description>
  17. <properties>
  18. <java.version>1.8</java.version>
  19. <start-class>cn.com.sailfish.linghang.LinghangApplication</start-class>
  20. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  21. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  22. <liquibase.version>3.6.1</liquibase.version>
  23. <springfox.version>2.9.2</springfox.version>
  24. <SBA.version>2.1.1</SBA.version>
  25. </properties>
  26. <dependencies>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-web</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-data-jpa</artifactId>
  34. </dependency>
  35. <!-- war need to disable embed tomcat -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-tomcat</artifactId>
  39. <scope>compile</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-amqp</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-security</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-test</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.security</groupId>
  56. <artifactId>spring-security-test</artifactId>
  57. <scope>test</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-reactor-netty</artifactId>
  62. <version>2.1.4.RELEASE</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-autoconfigure</artifactId>
  67. <version>2.1.10.RELEASE</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-starter-websocket</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-devtools</artifactId>
  76. <scope>runtime</scope>
  77. </dependency>
  78. <!-- 监控模块 -->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-actuator</artifactId>
  82. </dependency>
  83. <!-- 监控界面 -->
  84. <dependency>
  85. <groupId>de.codecentric</groupId>
  86. <artifactId>spring-boot-admin-starter-client</artifactId>
  87. <version>${SBA.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>de.codecentric</groupId>
  91. <artifactId>spring-boot-admin-server</artifactId>
  92. <version>${SBA.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>de.codecentric</groupId>
  96. <artifactId>spring-boot-admin-server-ui</artifactId>
  97. <version>${SBA.version}</version>
  98. </dependency>
  99. <!-- swagger -->
  100. <dependency>
  101. <groupId>io.springfox</groupId>
  102. <artifactId>springfox-swagger2</artifactId>
  103. <version>${springfox.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>io.springfox</groupId>
  107. <artifactId>springfox-swagger-ui</artifactId>
  108. <version>${springfox.version}</version>
  109. <exclusions>
  110. <exclusion>
  111. <groupId>io.swagger</groupId>
  112. <artifactId>swagger-models</artifactId>
  113. </exclusion>
  114. </exclusions>
  115. </dependency>
  116. <!-- io.springfox:springfox-swagger2:2.9.2中依赖了swagger-models的1.5.20版本,通过排除springfox-swagger2中的swagger-models依赖,
  117. 导入io.swagger:swagger-models的1.5.21版本.解决io.swagger.models.parameters.AbstractSerializableParameter实例化参数时example为
  118. 空字符串""而报错的问题.因为1.5.20的example只判断是否为null,1.5.21判断了是否为null和""-->
  119. <dependency>
  120. <groupId>io.swagger</groupId>
  121. <artifactId>swagger-models</artifactId>
  122. <version>1.5.21</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.projectlombok</groupId>
  126. <artifactId>lombok</artifactId>
  127. <optional>true</optional>
  128. </dependency>
  129. <dependency>
  130. <groupId>mysql</groupId>
  131. <artifactId>mysql-connector-java</artifactId>
  132. <scope>runtime</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.liquibase</groupId>
  136. <artifactId>liquibase-core</artifactId>
  137. <version>${liquibase.version}</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.github.ulisesbocchio</groupId>
  141. <artifactId>jasypt-spring-boot-starter</artifactId>
  142. <version>2.1.0</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.assertj</groupId>
  146. <artifactId>assertj-core</artifactId>
  147. <scope>test</scope>
  148. </dependency>
  149. <!-- H2 Database for test and dev -->
  150. <dependency>
  151. <groupId>com.h2database</groupId>
  152. <artifactId>h2</artifactId>
  153. </dependency>
  154. <!--创建通道-->
  155. <dependency>
  156. <groupId>io.netty</groupId>
  157. <artifactId>netty-all</artifactId>
  158. <version>4.1.34.Final</version>
  159. </dependency>
  160. <!-- JSON -->
  161. <dependency>
  162. <groupId>com.alibaba</groupId>
  163. <artifactId>fastjson</artifactId>
  164. <version>1.2.62</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>io.jsonwebtoken</groupId>
  168. <artifactId>jjwt</artifactId>
  169. <version>0.9.0</version>
  170. </dependency>
  171. <!-- poi excel文件信息的导入-->
  172. <dependency>
  173. <groupId>org.apache.poi</groupId>
  174. <artifactId>poi</artifactId>
  175. <version>3.17</version>
  176. </dependency>
  177. <dependency>
  178. <groupId>org.apache.poi</groupId>
  179. <artifactId>poi-ooxml</artifactId>
  180. <version>3.17</version>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.apache.poi</groupId>
  184. <artifactId>poi-ooxml-schemas</artifactId>
  185. <version>3.17</version>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.apache.commons</groupId>
  189. <artifactId>commons-compress</artifactId>
  190. <version>1.19</version>
  191. </dependency>
  192. <dependency>
  193. <groupId>commons-io</groupId>
  194. <artifactId>commons-io</artifactId>
  195. <version>2.6</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.apache.xmlbeans</groupId>
  199. <artifactId>xmlbeans</artifactId>
  200. <version>2.3.0</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>commons-httpclient</groupId>
  204. <artifactId>commons-httpclient</artifactId>
  205. <version>3.1</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.github.axet</groupId>
  209. <artifactId>kaptcha</artifactId>
  210. <version>0.0.9</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>dom4j</groupId>
  214. <artifactId>dom4j</artifactId>
  215. <version>2.1.1</version>
  216. <scope>system</scope>
  217. <systemPath>${project.basedir}/lib/dom4j-2.1.1.jar</systemPath>
  218. </dependency>
  219. <dependency>
  220. <groupId>commons-collections</groupId>
  221. <artifactId>commons-collections</artifactId>
  222. <version>3.2.2</version>
  223. </dependency>
  224. <dependency>
  225. <groupId>commons-beanutils</groupId>
  226. <artifactId>commons-beanutils</artifactId>
  227. <version>1.9.4</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.google.guava</groupId>
  231. <artifactId>guava</artifactId>
  232. <version>28.0-jre</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.apache.tomcat.embed</groupId>
  236. <artifactId>tomcat-embed-core</artifactId>
  237. <version>9.0.29</version>
  238. <!-- <scope>provided</scope>-->
  239. </dependency>
  240. <dependency>
  241. <groupId>org.apache.tomcat.embed</groupId>
  242. <artifactId>tomcat-embed-websocket</artifactId>
  243. <!-- <scope>provided</scope>-->
  244. <version>9.0.29</version>
  245. <!-- <scope>system</scope>
  246. <systemPath>${project.basedir}/lib/tomcat-embed-websocket-9.0.22.jar</systemPath>-->
  247. </dependency>
  248. </dependencies>
  249. <build>
  250. <defaultGoal>spring-boot:run</defaultGoal>
  251. <plugins>
  252. <plugin>
  253. <groupId>org.springframework.boot</groupId>
  254. <artifactId>spring-boot-maven-plugin</artifactId>
  255. <configuration>
  256. <includeSystemScope>true</includeSystemScope>
  257. </configuration>
  258. <executions>
  259. <!-- 构建信息 -->
  260. <execution>
  261. <goals>
  262. <goal>build-info</goal>
  263. </goals>
  264. <configuration>
  265. <additionalProperties>
  266. <encoding.source>UTF-8</encoding.source>
  267. <encoding.reporting>UTF-8</encoding.reporting>
  268. <java.source>${maven.compiler.source}</java.source>
  269. <java.target>${maven.compiler.target}</java.target>
  270. </additionalProperties>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <!-- git 的版本信息 -->
  276. <plugin>
  277. <groupId>pl.project13.maven</groupId>
  278. <artifactId>git-commit-id-plugin</artifactId>
  279. </plugin>
  280. <plugin>
  281. <groupId>org.liquibase</groupId>
  282. <artifactId>liquibase-maven-plugin</artifactId>
  283. <version>${liquibase.version}</version>
  284. <configuration>
  285. <propertyFile>src/main/resources/liquibase.properties</propertyFile>
  286. </configuration>
  287. </plugin>
  288. <!-- 单元测试覆盖率 -->
  289. <plugin>
  290. <groupId>org.jacoco</groupId>
  291. <artifactId>jacoco-maven-plugin</artifactId>
  292. <version>0.8.0</version>
  293. <executions>
  294. <execution>
  295. <id>default-prepare-agent</id>
  296. <goals>
  297. <goal>prepare-agent</goal>
  298. </goals>
  299. </execution>
  300. <execution>
  301. <id>default-report</id>
  302. <phase>prepare-package</phase>
  303. <goals>
  304. <goal>report</goal>
  305. </goals>
  306. </execution>
  307. <execution>
  308. <id>jacoco-check</id>
  309. <goals>
  310. <goal>check</goal>
  311. </goals>
  312. <configuration>
  313. <rules>
  314. <rule>
  315. <element>PACKAGE</element>
  316. <limits>
  317. <limit>
  318. <counter>LINE</counter>
  319. <value>COVEREDRATIO</value>
  320. <minimum>0.85</minimum>
  321. </limit>
  322. </limits>
  323. </rule>
  324. </rules>
  325. </configuration>
  326. </execution>
  327. </executions>
  328. </plugin>
  329. </plugins>
  330. </build>
  331. </project>