pom.xml 9.9 KB

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