pom.xml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. <executions>
  135. <execution>
  136. <goals>
  137. <goal>repackage</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-pmd-plugin</artifactId>
  145. <version>${maven.pmd.version}</version>
  146. <configuration>
  147. <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
  148. <minimumPriority>1</minimumPriority>
  149. <excludeRoots>
  150. <excludeRoot>com/alibaba/csp/sentinel/benchmark</excludeRoot>
  151. </excludeRoots>
  152. <excludes>
  153. <exclude>**/*_jmhTest.java</exclude>
  154. </excludes>
  155. <printFailingErrors>true</printFailingErrors>
  156. <rulesets>
  157. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  158. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  159. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  160. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  161. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  162. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  163. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  164. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  165. <ruleset>rulesets/java/ali-other.xml</ruleset>
  166. <ruleset>rulesets/java/ali-set.xml</ruleset>
  167. </rulesets>
  168. </configuration>
  169. <executions>
  170. <execution>
  171. <phase>verify</phase>
  172. <goals>
  173. <goal>check</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. <dependencies>
  178. <dependency>
  179. <groupId>com.alibaba.p3c</groupId>
  180. <artifactId>p3c-pmd</artifactId>
  181. <version>1.3.6</version>
  182. </dependency>
  183. </dependencies>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.apache.maven.plugins</groupId>
  187. <artifactId>maven-compiler-plugin</artifactId>
  188. <version>${maven.compiler.version}</version>
  189. <configuration>
  190. <source>${java.source.version}</source>
  191. <target>${java.target.version}</target>
  192. <encoding>${java.encoding}</encoding>
  193. </configuration>
  194. </plugin>
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-surefire-plugin</artifactId>
  198. <configuration>
  199. <!-- CircleCI build workaround -->
  200. <argLine>@{argLine} -Xms1024m -Xmx2048m</argLine>
  201. <argLine>-Dfile.encoding=UTF-8</argLine>
  202. <useSystemClassLoader>false</useSystemClassLoader>
  203. </configuration>
  204. </plugin>
  205. <plugin>
  206. <groupId>org.jacoco</groupId>
  207. <artifactId>jacoco-maven-plugin</artifactId>
  208. <version>${maven.jacoco.version}</version>
  209. <executions>
  210. <execution>
  211. <goals>
  212. <goal>prepare-agent</goal>
  213. </goals>
  214. </execution>
  215. <execution>
  216. <id>report</id>
  217. <phase>test</phase>
  218. <goals>
  219. <goal>report</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. </plugins>
  225. <pluginManagement>
  226. <plugins>
  227. <plugin>
  228. <groupId>org.apache.maven.plugins</groupId>
  229. <artifactId>maven-surefire-plugin</artifactId>
  230. <version>${maven.surefire.version}</version>
  231. </plugin>
  232. <plugin>
  233. <groupId>org.apache.maven.plugins</groupId>
  234. <artifactId>maven-jar-plugin</artifactId>
  235. <version>${maven.jar.version}</version>
  236. </plugin>
  237. <plugin>
  238. <groupId>org.apache.maven.plugins</groupId>
  239. <artifactId>maven-gpg-plugin</artifactId>
  240. <version>${maven.gpg.version}</version>
  241. </plugin>
  242. </plugins>
  243. </pluginManagement>
  244. </build>
  245. <profiles>
  246. <profile>
  247. <build>
  248. <plugins>
  249. <!-- Source -->
  250. <plugin>
  251. <groupId>org.apache.maven.plugins</groupId>
  252. <artifactId>maven-source-plugin</artifactId>
  253. <version>${maven.source.version}</version>
  254. <executions>
  255. <execution>
  256. <phase>package</phase>
  257. <goals>
  258. <goal>jar-no-fork</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. </plugin>
  263. <!-- Javadoc -->
  264. <plugin>
  265. <groupId>org.apache.maven.plugins</groupId>
  266. <artifactId>maven-javadoc-plugin</artifactId>
  267. <version>${maven.javadoc.version}</version>
  268. <executions>
  269. <execution>
  270. <phase>package</phase>
  271. <goals>
  272. <goal>jar</goal>
  273. </goals>
  274. <configuration>
  275. <locale>en_US</locale>
  276. <encoding>UTF-8</encoding>
  277. <charset>UTF-8</charset>
  278. <doclint>none</doclint>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. <!-- GPG -->
  284. <plugin>
  285. <groupId>org.apache.maven.plugins</groupId>
  286. <artifactId>maven-gpg-plugin</artifactId>
  287. <version>${maven.gpg.version}</version>
  288. <executions>
  289. <execution>
  290. <phase>verify</phase>
  291. <goals>
  292. <goal>sign</goal>
  293. </goals>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. </plugins>
  298. </build>
  299. </profile>
  300. </profiles>
  301. <repositories>
  302. <repository>
  303. <id>persagy</id>
  304. <name>releases Repository</name>
  305. <url>http://47.93.132.139:8081/nexus/content/repositories/persagy/</url>
  306. </repository>
  307. <repository>
  308. <id>integrated</id>
  309. <name>releases Repository</name>
  310. <url>http://47.93.132.139:8081/nexus/content/repositories/integrated/</url>
  311. <snapshots>
  312. <enabled>false</enabled>
  313. </snapshots>
  314. </repository>
  315. <repository>
  316. <id>aliyun</id>
  317. <name>releases Repository</name>
  318. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  319. </repository>
  320. </repositories>
  321. <pluginRepositories>
  322. <pluginRepository>
  323. <id>central</id>
  324. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  325. </pluginRepository>
  326. </pluginRepositories>
  327. </project>