pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.persagy</groupId>
  6. <artifactId>bdos-common</artifactId>
  7. <version>2.0.0</version>
  8. <description>BDOS通用类</description>
  9. <properties>
  10. <!-- java版本 -->
  11. <java.version>8</java.version>
  12. <java.encoding>UTF-8</java.encoding>
  13. <java.source.version>1.8</java.source.version>
  14. <java.target.version>1.8</java.target.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <!-- 三方jar -->
  17. <integrated-platform.version>1.0.0</integrated-platform.version>
  18. <mybatis-plus.version>3.3.0</mybatis-plus.version>
  19. <java.version>1.8</java.version>
  20. <poi.version>4.1.2</poi.version>
  21. <jwt.version>0.9.1</jwt.version>
  22. <transmittable.version>2.11.5</transmittable.version>
  23. <!-- maven依赖 -->
  24. <maven.compiler.version>3.8.0</maven.compiler.version>
  25. <maven.surefire.version>2.22.1</maven.surefire.version>
  26. <maven.source.version>3.0.1</maven.source.version>
  27. <maven.javadoc.version>3.0.1</maven.javadoc.version>
  28. <maven.gpg.version>1.6</maven.gpg.version>
  29. <maven.jacoco.version>0.8.3</maven.jacoco.version>
  30. <maven.jar.version>3.1.0</maven.jar.version>
  31. <maven.pmd.version>3.8</maven.pmd.version>
  32. </properties>
  33. <dependencyManagement>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.persagy.alibaba</groupId>
  37. <artifactId>integrated-platform</artifactId>
  38. <version>${integrated-platform.version}</version>
  39. <type>pom</type>
  40. <scope>import</scope>
  41. </dependency>
  42. </dependencies>
  43. </dependencyManagement>
  44. <dependencies>
  45. <dependency>
  46. <groupId>com.thoughtworks.xstream</groupId>
  47. <artifactId>xstream</artifactId>
  48. <version>1.4.18</version>
  49. </dependency>
  50. <!-- integrated -->
  51. <dependency>
  52. <groupId>com.persagy.alibaba</groupId>
  53. <artifactId>integrated-loadbalancer-spring-boot-starter</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-validation</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.querydsl</groupId>
  65. <artifactId>querydsl-jpa</artifactId>
  66. <scope>provided</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-web</artifactId>
  71. <exclusions>
  72. <exclusion>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-logging</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <artifactId>hibernate-validator</artifactId>
  78. <groupId>org.hibernate.validator</groupId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. <dependency>
  83. <groupId>io.jsonwebtoken</groupId>
  84. <artifactId>jjwt</artifactId>
  85. <version>${jwt.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.baomidou</groupId>
  89. <artifactId>mybatis-plus-boot-starter</artifactId>
  90. <version>${mybatis-plus.version}</version>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>com.zaxxer</groupId>
  94. <artifactId>HikariCP</artifactId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <!-- swagger -->
  99. <dependency>
  100. <groupId>com.github.xiaoymin</groupId>
  101. <artifactId>knife4j-spring-boot-starter</artifactId>
  102. <!--在引用时请在maven中央仓库搜索最新版本号 -->
  103. <version>2.0.2</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-cache</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.github.ben-manes.caffeine</groupId>
  111. <artifactId>caffeine</artifactId>
  112. <version>2.8.0</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.data</groupId>
  116. <artifactId>spring-data-commons</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.mapstruct</groupId>
  120. <!-- jdk8以下就使用mapstruct -->
  121. <artifactId>mapstruct-jdk8</artifactId>
  122. <version>1.2.0.Final</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.mapstruct</groupId>
  126. <artifactId>mapstruct-processor</artifactId>
  127. <version>1.2.0.Final</version>
  128. </dependency>
  129. <!-- spring boot redis依赖 -->
  130. <dependency>
  131. <groupId>org.springframework.boot</groupId>
  132. <artifactId>spring-boot-starter-data-redis</artifactId>
  133. </dependency>
  134. <!-- RabbitMQ -->
  135. <dependency>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-starter-amqp</artifactId>
  138. </dependency>
  139. <!-- poi 解析excel -->
  140. <dependency>
  141. <groupId>org.apache.poi</groupId>
  142. <artifactId>poi-ooxml</artifactId>
  143. <version>${poi.version}</version>
  144. </dependency>
  145. </dependencies>
  146. <build>
  147. <finalName>${project.artifactId}</finalName>
  148. <plugins>
  149. <plugin>
  150. <groupId>org.springframework.boot</groupId>
  151. <artifactId>spring-boot-maven-plugin</artifactId>
  152. <executions>
  153. <execution>
  154. <goals>
  155. <goal>repackage</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-pmd-plugin</artifactId>
  163. <version>${maven.pmd.version}</version>
  164. <configuration>
  165. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  166. <minimumPriority>1</minimumPriority>
  167. <excludeRoots>
  168. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  169. </excludeRoots>
  170. <excludes>
  171. <exclude>**/*_jmhTest.java</exclude>
  172. </excludes>
  173. <printFailingErrors>true</printFailingErrors>
  174. <rulesets>
  175. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  176. <!-- <ruleset>rulesets/java/ali-concurrent.xml</ruleset> -->
  177. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  178. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  179. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  180. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  181. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  182. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  183. <ruleset>rulesets/java/ali-other.xml</ruleset>
  184. <ruleset>rulesets/java/ali-set.xml</ruleset>
  185. </rulesets>
  186. </configuration>
  187. <executions>
  188. <execution>
  189. <phase>verify</phase>
  190. <goals>
  191. <goal>check</goal>
  192. </goals>
  193. </execution>
  194. </executions>
  195. <dependencies>
  196. <dependency>
  197. <groupId>com.alibaba.p3c</groupId>
  198. <artifactId>p3c-pmd</artifactId>
  199. <version>1.3.6</version>
  200. </dependency>
  201. </dependencies>
  202. </plugin>
  203. <plugin>
  204. <groupId>org.apache.maven.plugins</groupId>
  205. <artifactId>maven-compiler-plugin</artifactId>
  206. <version>${maven.compiler.version}</version>
  207. <configuration>
  208. <source>${java.source.version}</source>
  209. <target>${java.target.version}</target>
  210. <encoding>${java.encoding}</encoding>
  211. </configuration>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-surefire-plugin</artifactId>
  216. <configuration>
  217. <!-- CircleCI build workaround -->
  218. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  219. <argLine>-Dfile.encoding=UTF-8</argLine>
  220. <useSystemClassLoader>false</useSystemClassLoader>
  221. </configuration>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.jacoco</groupId>
  225. <artifactId>jacoco-maven-plugin</artifactId>
  226. <version>${maven.jacoco.version}</version>
  227. <executions>
  228. <execution>
  229. <goals>
  230. <goal>prepare-agent</goal>
  231. </goals>
  232. </execution>
  233. <execution>
  234. <id>report</id>
  235. <phase>test</phase>
  236. <goals>
  237. <goal>report</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. </plugins>
  243. <pluginManagement>
  244. <plugins>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-surefire-plugin</artifactId>
  248. <version>${maven.surefire.version}</version>
  249. </plugin>
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-jar-plugin</artifactId>
  253. <version>${maven.jar.version}</version>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-gpg-plugin</artifactId>
  258. <version>${maven.gpg.version}</version>
  259. </plugin>
  260. </plugins>
  261. </pluginManagement>
  262. </build>
  263. <profiles>
  264. <profile>
  265. <build>
  266. <plugins>
  267. <!-- Source -->
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-source-plugin</artifactId>
  271. <version>${maven.source.version}</version>
  272. <executions>
  273. <execution>
  274. <phase>package</phase>
  275. <goals>
  276. <goal>jar-no-fork</goal>
  277. </goals>
  278. </execution>
  279. </executions>
  280. </plugin>
  281. <!-- Javadoc -->
  282. <plugin>
  283. <groupId>org.apache.maven.plugins</groupId>
  284. <artifactId>maven-javadoc-plugin</artifactId>
  285. <version>${maven.javadoc.version}</version>
  286. <executions>
  287. <execution>
  288. <phase>package</phase>
  289. <goals>
  290. <goal>jar</goal>
  291. </goals>
  292. <configuration>
  293. <locale>en_US</locale>
  294. <encoding>UTF-8</encoding>
  295. <charset>UTF-8</charset>
  296. <doclint>none</doclint>
  297. </configuration>
  298. </execution>
  299. </executions>
  300. </plugin>
  301. <!-- GPG -->
  302. <plugin>
  303. <groupId>org.apache.maven.plugins</groupId>
  304. <artifactId>maven-gpg-plugin</artifactId>
  305. <version>${maven.gpg.version}</version>
  306. <executions>
  307. <execution>
  308. <phase>verify</phase>
  309. <goals>
  310. <goal>sign</goal>
  311. </goals>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. </plugins>
  316. </build>
  317. </profile>
  318. </profiles>
  319. <repositories>
  320. <repository>
  321. <id>persagy</id>
  322. <name>releases Repository</name>
  323. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  324. </repository>
  325. <repository>
  326. <id>integrated</id>
  327. <name>releases Repository</name>
  328. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  329. <snapshots>
  330. <enabled>false</enabled>
  331. </snapshots>
  332. </repository>
  333. <repository>
  334. <id>aliyun</id>
  335. <name>releases Repository</name>
  336. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  337. </repository>
  338. </repositories>
  339. <distributionManagement>
  340. <repository>
  341. <id>integrated</id>
  342. <name>releases Repository</name>
  343. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  344. </repository>
  345. </distributionManagement>
  346. <pluginRepositories>
  347. <pluginRepository>
  348. <id>central</id>
  349. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  350. </pluginRepository>
  351. </pluginRepositories>
  352. </project>