pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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>calendar-center</artifactId>
  7. <version>2.0.0</version>
  8. <properties>
  9. <!-- java版本 -->
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <java.encoding>UTF-8</java.encoding>
  12. <java.version>8</java.version>
  13. <java.source.version>1.8</java.source.version>
  14. <java.target.version>1.8</java.target.version>
  15. <!-- spring版本依赖 -->
  16. <integrated-platform.version>2.0.0</integrated-platform.version>
  17. <spring-boot-dependencies.version>2.1.14.RELEASE</spring-boot-dependencies.version>
  18. <spring-cloud-dependencies.version>Greenwich.SR6</spring-cloud-dependencies.version>
  19. <mybatis-spring-boot-starter.version>1.3.2</mybatis-spring-boot-starter.version>
  20. <!-- 三方jar依赖 -->
  21. <mybatis-plus.version>3.3.1</mybatis-plus.version>
  22. <guava.version>20.0</guava.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</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. <!-- 服务依赖 -->
  45. <dependencies>
  46. <dependency>
  47. <groupId>org.springframework</groupId>
  48. <artifactId>spring-core</artifactId>
  49. </dependency>
  50. <!-- 依赖集成自定义jar -->
  51. <dependency>
  52. <groupId>com.persagy</groupId>
  53. <artifactId>integrated-config-client</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.persagy</groupId>
  57. <artifactId>integrated-common-core</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>com.persagy</groupId>
  61. <artifactId>integrated-db-spring-boot-starter</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.persagy</groupId>
  65. <artifactId>integrated-ribbon-spring-boot-starter</artifactId>
  66. </dependency>
  67. <!-- <dependency>
  68. <groupId>com.persagy</groupId>
  69. <artifactId>integrated-swagger-spring-boot-starter</artifactId>
  70. </dependency> -->
  71. <!-- <dependency>
  72. <groupId>com.persagy</groupId>
  73. <artifactId>integrated-redis-spring-boot-starter</artifactId>
  74. </dependency> -->
  75. <dependency>
  76. <groupId>com.google.guava</groupId>
  77. <artifactId>guava</artifactId>
  78. </dependency>
  79. <!-- web -->
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-web</artifactId>
  83. </dependency>
  84. <!-- 服务注册 -->
  85. <dependency>
  86. <groupId>org.springframework.cloud</groupId>
  87. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  88. </dependency>
  89. <!-- mysql -->
  90. <dependency>
  91. <groupId>mysql</groupId>
  92. <artifactId>mysql-connector-java</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.springframework</groupId>
  96. <artifactId>spring-context-support</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.cloud</groupId>
  100. <artifactId>spring-cloud-starter-security</artifactId>
  101. </dependency>
  102. <dependency>
  103. <groupId>io.micrometer</groupId>
  104. <artifactId>micrometer-registry-prometheus</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.springframework.social</groupId>
  108. <artifactId>spring-social-security</artifactId>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-starter</artifactId>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.springframework.boot</groupId>
  116. <artifactId>spring-boot-starter-test</artifactId>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.cloud</groupId>
  120. <artifactId>spring-cloud-context</artifactId>
  121. </dependency>
  122. <dependency>
  123. <groupId>cn.hutool</groupId>
  124. <artifactId>hutool-all</artifactId>
  125. </dependency>
  126. <!-- fastjson -->
  127. <dependency>
  128. <groupId>com.alibaba</groupId>
  129. <artifactId>fastjson</artifactId>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.projectlombok</groupId>
  133. <artifactId>lombok</artifactId>
  134. </dependency>
  135. </dependencies>
  136. <build>
  137. <finalName>${project.artifactId}</finalName>
  138. <plugins>
  139. <plugin>
  140. <groupId>org.springframework.boot</groupId>
  141. <artifactId>spring-boot-maven-plugin</artifactId>
  142. <version>2.3.4.RELEASE</version>
  143. <executions>
  144. <execution>
  145. <goals>
  146. <goal>repackage</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.maven.plugins</groupId>
  153. <artifactId>maven-pmd-plugin</artifactId>
  154. <version>${maven.pmd.version}</version>
  155. <configuration>
  156. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  157. <minimumPriority>1</minimumPriority>
  158. <excludeRoots>
  159. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  160. </excludeRoots>
  161. <excludes>
  162. <exclude>**/*_jmhTest.java</exclude>
  163. </excludes>
  164. <printFailingErrors>true</printFailingErrors>
  165. <rulesets>
  166. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  167. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  168. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  169. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  170. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  171. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  172. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  173. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  174. <ruleset>rulesets/java/ali-other.xml</ruleset>
  175. <ruleset>rulesets/java/ali-set.xml</ruleset>
  176. </rulesets>
  177. </configuration>
  178. <executions>
  179. <execution>
  180. <phase>verify</phase>
  181. <goals>
  182. <goal>check</goal>
  183. </goals>
  184. </execution>
  185. </executions>
  186. <dependencies>
  187. <dependency>
  188. <groupId>com.alibaba.p3c</groupId>
  189. <artifactId>p3c-pmd</artifactId>
  190. <version>1.3.6</version>
  191. </dependency>
  192. </dependencies>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-compiler-plugin</artifactId>
  197. <version>${maven.compiler.version}</version>
  198. <configuration>
  199. <source>${java.source.version}</source>
  200. <target>${java.target.version}</target>
  201. <encoding>${java.encoding}</encoding>
  202. </configuration>
  203. </plugin>
  204. <plugin>
  205. <groupId>org.apache.maven.plugins</groupId>
  206. <artifactId>maven-surefire-plugin</artifactId>
  207. <configuration>
  208. <!-- CircleCI build workaround -->
  209. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  210. <argLine>-Dfile.encoding=UTF-8</argLine>
  211. <useSystemClassLoader>false</useSystemClassLoader>
  212. </configuration>
  213. </plugin>
  214. <plugin>
  215. <groupId>org.jacoco</groupId>
  216. <artifactId>jacoco-maven-plugin</artifactId>
  217. <version>${maven.jacoco.version}</version>
  218. <executions>
  219. <execution>
  220. <goals>
  221. <goal>prepare-agent</goal>
  222. </goals>
  223. </execution>
  224. <execution>
  225. <id>report</id>
  226. <phase>test</phase>
  227. <goals>
  228. <goal>report</goal>
  229. </goals>
  230. </execution>
  231. </executions>
  232. </plugin>
  233. </plugins>
  234. <pluginManagement>
  235. <plugins>
  236. <plugin>
  237. <groupId>org.apache.maven.plugins</groupId>
  238. <artifactId>maven-surefire-plugin</artifactId>
  239. <version>${maven.surefire.version}</version>
  240. </plugin>
  241. <plugin>
  242. <groupId>org.apache.maven.plugins</groupId>
  243. <artifactId>maven-jar-plugin</artifactId>
  244. <version>${maven.jar.version}</version>
  245. </plugin>
  246. <plugin>
  247. <groupId>org.apache.maven.plugins</groupId>
  248. <artifactId>maven-gpg-plugin</artifactId>
  249. <version>${maven.gpg.version}</version>
  250. </plugin>
  251. </plugins>
  252. </pluginManagement>
  253. </build>
  254. <profiles>
  255. <profile>
  256. <build>
  257. <plugins>
  258. <!-- Source -->
  259. <plugin>
  260. <groupId>org.apache.maven.plugins</groupId>
  261. <artifactId>maven-source-plugin</artifactId>
  262. <version>${maven.source.version}</version>
  263. <executions>
  264. <execution>
  265. <phase>package</phase>
  266. <goals>
  267. <goal>jar-no-fork</goal>
  268. </goals>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <!-- Javadoc -->
  273. <plugin>
  274. <groupId>org.apache.maven.plugins</groupId>
  275. <artifactId>maven-javadoc-plugin</artifactId>
  276. <version>${maven.javadoc.version}</version>
  277. <executions>
  278. <execution>
  279. <phase>package</phase>
  280. <goals>
  281. <goal>jar</goal>
  282. </goals>
  283. <configuration>
  284. <locale>en_US</locale>
  285. <encoding>UTF-8</encoding>
  286. <charset>UTF-8</charset>
  287. <doclint>none</doclint>
  288. </configuration>
  289. </execution>
  290. </executions>
  291. </plugin>
  292. <!-- GPG -->
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-gpg-plugin</artifactId>
  296. <version>${maven.gpg.version}</version>
  297. <executions>
  298. <execution>
  299. <phase>verify</phase>
  300. <goals>
  301. <goal>sign</goal>
  302. </goals>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. </plugins>
  307. </build>
  308. </profile>
  309. </profiles>
  310. <repositories>
  311. <repository>
  312. <id>persagy</id>
  313. <name>releases Repository</name>
  314. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  315. </repository>
  316. <repository>
  317. <id>integrated</id>
  318. <name>releases Repository</name>
  319. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  320. <snapshots>
  321. <enabled>false</enabled>
  322. </snapshots>
  323. </repository>
  324. <repository>
  325. <id>aliyun</id>
  326. <name>releases Repository</name>
  327. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  328. </repository>
  329. </repositories>
  330. <pluginRepositories>
  331. <pluginRepository>
  332. <id>central</id>
  333. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  334. </pluginRepository>
  335. </pluginRepositories>
  336. </project>