pom.xml 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <name>Apollo</name>
  25. <packaging>pom</packaging>
  26. <description>Ctrip Configuration Center</description>
  27. <url>https://github.com/ctripcorp/apollo</url>
  28. <organization>
  29. <name>Ctrip, Inc.</name>
  30. <url>http://www.ctrip.com</url>
  31. </organization>
  32. <licenses>
  33. <license>
  34. <name>Apache License, Version 2.0</name>
  35. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  36. </license>
  37. </licenses>
  38. <scm>
  39. <url>https://github.com/ctripcorp/apollo</url>
  40. <connection>scm:git:git://github.com/ctripcorp/apollo.git</connection>
  41. <developerConnection>scm:git:ssh://git@github.com/ctripcorp/apollo.git</developerConnection>
  42. </scm>
  43. <ciManagement>
  44. <system>GitHub Actions</system>
  45. <url>https://github.com/ctripcorp/apollo/actions</url>
  46. </ciManagement>
  47. <issueManagement>
  48. <system>github</system>
  49. <url>https://github.com/ctripcorp/apollo/issues</url>
  50. </issueManagement>
  51. <developers>
  52. <developer>
  53. <id>apollo</id>
  54. <name>The Apollo Project Contributors</name>
  55. <email>apollo-config@googlegroups.com</email>
  56. <url>https://www.apolloconfig.com/</url>
  57. </developer>
  58. </developers>
  59. <properties>
  60. <revision>1.9.1</revision>
  61. <java.version>1.8</java.version>
  62. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  63. <spring-boot.version>2.4.2</spring-boot.version>
  64. <spring-cloud.version>2020.0.1</spring-cloud.version>
  65. <jaxb.version>2.3.0</jaxb.version>
  66. <javax.activation.version>1.1.1</javax.activation.version>
  67. <javax.mail.version>1.6.2</javax.mail.version>
  68. <javassist.version>3.23.1-GA</javassist.version>
  69. <nacos-discovery-api.version>1.4.0</nacos-discovery-api.version>
  70. <!-- Plugins Version -->
  71. <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
  72. <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
  73. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  74. <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
  75. <maven-war-plugin.version>3.0.0</maven-war-plugin.version>
  76. <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
  77. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  78. <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
  79. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  80. <!-- for travis usage -->
  81. <github.global.server>github</github.global.server>
  82. <github.global.oauth2Token>${env.GITHUB_OAUTH_TOKEN}</github.global.oauth2Token>
  83. </properties>
  84. <modules>
  85. <module>apollo-buildtools</module>
  86. <module>apollo-core</module>
  87. <module>apollo-client</module>
  88. <module>apollo-client-config-data</module>
  89. <module>apollo-common</module>
  90. <module>apollo-biz</module>
  91. <module>apollo-configservice</module>
  92. <module>apollo-adminservice</module>
  93. <module>apollo-portal</module>
  94. <module>apollo-assembly</module>
  95. <module>apollo-demo</module>
  96. <module>apollo-mockserver</module>
  97. <module>apollo-openapi</module>
  98. </modules>
  99. <dependencyManagement>
  100. <dependencies>
  101. <dependency>
  102. <groupId>com.ctrip.framework.apollo</groupId>
  103. <artifactId>apollo-core</artifactId>
  104. <version>${project.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.ctrip.framework.apollo</groupId>
  108. <artifactId>apollo-client</artifactId>
  109. <version>${project.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.ctrip.framework.apollo</groupId>
  113. <artifactId>apollo-common</artifactId>
  114. <version>${project.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.ctrip.framework.apollo</groupId>
  118. <artifactId>apollo-biz</artifactId>
  119. <version>${project.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.ctrip.framework.apollo</groupId>
  123. <artifactId>apollo-buildtools</artifactId>
  124. <version>${project.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.ctrip.framework.apollo</groupId>
  128. <artifactId>apollo-configservice</artifactId>
  129. <version>${project.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.ctrip.framework.apollo</groupId>
  133. <artifactId>apollo-adminservice</artifactId>
  134. <version>${project.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.ctrip.framework.apollo</groupId>
  138. <artifactId>apollo-portal</artifactId>
  139. <version>${project.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.ctrip.framework.apollo</groupId>
  143. <artifactId>apollo-openapi</artifactId>
  144. <version>${project.version}</version>
  145. </dependency>
  146. <!-- ctrip internal dependencies, only used when ctrip profiles are enabled -->
  147. <dependency>
  148. <groupId>com.dianping.cat</groupId>
  149. <artifactId>cat-client</artifactId>
  150. <version>2.2.3</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.ctrip.platform</groupId>
  154. <artifactId>ctrip-dal-client</artifactId>
  155. <version>1.0.2</version>
  156. <exclusions>
  157. <exclusion>
  158. <artifactId>logback-core</artifactId>
  159. <groupId>ch.qos.logback</groupId>
  160. </exclusion>
  161. <exclusion>
  162. <artifactId>logback-classic</artifactId>
  163. <groupId>ch.qos.logback</groupId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>commons-logging</groupId>
  167. <artifactId>commons-logging</artifactId>
  168. </exclusion>
  169. <!-- duplicated with xpp3:xpp3_min -->
  170. <exclusion>
  171. <groupId>xmlpull</groupId>
  172. <artifactId>xmlpull</artifactId>
  173. </exclusion>
  174. <!-- duplicated with bcpkix-jdk15on -->
  175. <exclusion>
  176. <groupId>org.bouncycastle</groupId>
  177. <artifactId>bcprov-jdk16</artifactId>
  178. </exclusion>
  179. <!-- duplicated with hibernate-jpa-2.1-api -->
  180. <exclusion>
  181. <groupId>javax.persistence</groupId>
  182. <artifactId>persistence-api</artifactId>
  183. </exclusion>
  184. </exclusions>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.ctrip.framework.clogging</groupId>
  188. <artifactId>clogging-agent</artifactId>
  189. <version>3.5.2</version>
  190. <exclusions>
  191. <exclusion>
  192. <artifactId>logback-core</artifactId>
  193. <groupId>ch.qos.logback</groupId>
  194. </exclusion>
  195. <exclusion>
  196. <artifactId>logback-classic</artifactId>
  197. <groupId>ch.qos.logback</groupId>
  198. </exclusion>
  199. <exclusion>
  200. <groupId>commons-logging</groupId>
  201. <artifactId>commons-logging</artifactId>
  202. </exclusion>
  203. </exclusions>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.ctrip.credis</groupId>
  207. <artifactId>credis</artifactId>
  208. <version>2.4.11</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.ctrip.framework</groupId>
  212. <artifactId>vi</artifactId>
  213. <version>0.9.1</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.ctrip.framework.apollo-sso</groupId>
  217. <artifactId>apollo-sso-ctrip</artifactId>
  218. <version>1.1.0</version>
  219. <exclusions>
  220. <!-- partially duplicated with org.ow2.asm:asm -->
  221. <exclusion>
  222. <groupId>asm</groupId>
  223. <artifactId>asm</artifactId>
  224. </exclusion>
  225. </exclusions>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.ctrip.framework.apollo-ctrip-service</groupId>
  229. <artifactId>apollo-email-service</artifactId>
  230. <version>1.0.0</version>
  231. <exclusions>
  232. <exclusion>
  233. <groupId>javax.servlet</groupId>
  234. <artifactId>javax.servlet-api</artifactId>
  235. </exclusion>
  236. <exclusion>
  237. <groupId>commons-logging</groupId>
  238. <artifactId>commons-logging</artifactId>
  239. </exclusion>
  240. <!-- duplicated with commons-collections and commons-beanutils -->
  241. <exclusion>
  242. <groupId>commons-beanutils</groupId>
  243. <artifactId>commons-beanutils-core</artifactId>
  244. </exclusion>
  245. </exclusions>
  246. </dependency>
  247. <!--third party -->
  248. <dependency>
  249. <groupId>org.slf4j</groupId>
  250. <artifactId>slf4j-api</artifactId>
  251. <version>1.7.21</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.google.guava</groupId>
  255. <artifactId>guava</artifactId>
  256. <!-- for jdk 7 compatibility -->
  257. <version>29.0-android</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>com.google.code.gson</groupId>
  261. <artifactId>gson</artifactId>
  262. <version>2.8.0</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>mysql</groupId>
  266. <artifactId>mysql-connector-java</artifactId>
  267. <version>8.0.16</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>com.google.inject</groupId>
  271. <artifactId>guice</artifactId>
  272. <version>4.1.0</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>commons-lang</groupId>
  276. <artifactId>commons-lang</artifactId>
  277. <version>2.6</version>
  278. </dependency>
  279. <!-- to fix CVE-2020-26217 -->
  280. <dependency>
  281. <groupId>com.thoughtworks.xstream</groupId>
  282. <artifactId>xstream</artifactId>
  283. <version>1.4.17</version>
  284. </dependency>
  285. <!--for test -->
  286. <dependency>
  287. <groupId>com.h2database</groupId>
  288. <artifactId>h2</artifactId>
  289. <version>1.4.191</version>
  290. <scope>test</scope>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.awaitility</groupId>
  294. <artifactId>awaitility</artifactId>
  295. <version>4.0.3</version>
  296. <scope>test</scope>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.junit.vintage</groupId>
  300. <artifactId>junit-vintage-engine</artifactId>
  301. <version>5.7.0</version>
  302. <scope>test</scope>
  303. </dependency>
  304. <dependency>
  305. <groupId>com.github.stefanbirkner</groupId>
  306. <artifactId>system-lambda</artifactId>
  307. <version>1.2.0</version>
  308. <scope>test</scope>
  309. </dependency>
  310. <!-- declare Spring BOMs in order -->
  311. <dependency>
  312. <groupId>org.springframework.boot</groupId>
  313. <artifactId>spring-boot-dependencies</artifactId>
  314. <version>${spring-boot.version}</version>
  315. <type>pom</type>
  316. <scope>import</scope>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.springframework.cloud</groupId>
  320. <artifactId>spring-cloud-dependencies</artifactId>
  321. <version>${spring-cloud.version}</version>
  322. <type>pom</type>
  323. <scope>import</scope>
  324. </dependency>
  325. <!-- required by eureka -->
  326. <dependency>
  327. <groupId>com.sun.jersey.contribs</groupId>
  328. <artifactId>jersey-apache-client4</artifactId>
  329. <version>1.19.4</version>
  330. </dependency>
  331. <!-- ctrip modified -->
  332. <!-- removed duplicated javax/persistence classes -->
  333. <dependency>
  334. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  335. <artifactId>tomcat-embed-core</artifactId>
  336. <version>8.0.37</version>
  337. <exclusions>
  338. <exclusion>
  339. <groupId>org.apache.tomcat.embed</groupId>
  340. <artifactId>tomcat-embed-logging-juli</artifactId>
  341. </exclusion>
  342. </exclusions>
  343. </dependency>
  344. <!-- JDK 1.8+ -->
  345. <dependency>
  346. <groupId>javax.xml.bind</groupId>
  347. <artifactId>jaxb-api</artifactId>
  348. <version>${jaxb.version}</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>com.sun.xml.bind</groupId>
  352. <artifactId>jaxb-impl</artifactId>
  353. <version>${jaxb.version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.glassfish.jaxb</groupId>
  357. <artifactId>jaxb-runtime</artifactId>
  358. <version>${jaxb.version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>javax.activation</groupId>
  362. <artifactId>activation</artifactId>
  363. <version>${javax.activation.version}</version>
  364. </dependency>
  365. <dependency>
  366. <groupId>com.sun.mail</groupId>
  367. <artifactId>javax.mail</artifactId>
  368. <version>${javax.mail.version}</version>
  369. </dependency>
  370. <!-- JDK 11+ -->
  371. <dependency>
  372. <groupId>org.javassist</groupId>
  373. <artifactId>javassist</artifactId>
  374. <version>${javassist.version}</version>
  375. </dependency>
  376. <!-- end of JDK 11+ -->
  377. </dependencies>
  378. </dependencyManagement>
  379. <dependencies>
  380. <dependency>
  381. <groupId>org.springframework.boot</groupId>
  382. <artifactId>spring-boot-starter-test</artifactId>
  383. <scope>test</scope>
  384. <exclusions>
  385. <exclusion>
  386. <artifactId>spring-boot-starter</artifactId>
  387. <groupId>org.springframework.boot</groupId>
  388. </exclusion>
  389. </exclusions>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.awaitility</groupId>
  393. <artifactId>awaitility</artifactId>
  394. <scope>test</scope>
  395. </dependency>
  396. <!-- for junit 4 -->
  397. <dependency>
  398. <groupId>org.junit.vintage</groupId>
  399. <artifactId>junit-vintage-engine</artifactId>
  400. <scope>test</scope>
  401. <exclusions>
  402. <exclusion>
  403. <groupId>org.hamcrest</groupId>
  404. <artifactId>hamcrest-core</artifactId>
  405. </exclusion>
  406. </exclusions>
  407. </dependency>
  408. </dependencies>
  409. <build>
  410. <pluginManagement>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-compiler-plugin</artifactId>
  415. <version>${maven-compiler-plugin.version}</version>
  416. <configuration>
  417. <source>${java.version}</source>
  418. <target>${java.version}</target>
  419. <encoding>${project.build.sourceEncoding}</encoding>
  420. </configuration>
  421. </plugin>
  422. <plugin>
  423. <groupId>org.apache.maven.plugins</groupId>
  424. <artifactId>maven-surefire-plugin</artifactId>
  425. <version>${maven-surefire-plugin.version}</version>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-source-plugin</artifactId>
  430. <version>${maven-source-plugin.version}</version>
  431. <executions>
  432. <execution>
  433. <id>attach-sources</id>
  434. <goals>
  435. <goal>jar-no-fork</goal>
  436. </goals>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. <plugin>
  441. <groupId>org.apache.maven.plugins</groupId>
  442. <artifactId>maven-jar-plugin</artifactId>
  443. <version>${maven-jar-plugin.version}</version>
  444. </plugin>
  445. <plugin>
  446. <artifactId>maven-javadoc-plugin</artifactId>
  447. <version>${maven-javadoc-plugin.version}</version>
  448. <executions>
  449. <execution>
  450. <id>attach-javadoc</id>
  451. <goals>
  452. <goal>jar</goal>
  453. </goals>
  454. <configuration>
  455. <doclint>none</doclint>
  456. </configuration>
  457. </execution>
  458. </executions>
  459. <configuration>
  460. <show>public</show>
  461. <charset>UTF-8</charset>
  462. <encoding>UTF-8</encoding>
  463. <docencoding>UTF-8</docencoding>
  464. <links>
  465. <link>http://docs.oracle.com/javase/7/docs/api</link>
  466. </links>
  467. </configuration>
  468. </plugin>
  469. <plugin>
  470. <groupId>org.apache.maven.plugins</groupId>
  471. <artifactId>maven-war-plugin</artifactId>
  472. <version>${maven-war-plugin.version}</version>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-install-plugin</artifactId>
  477. <version>${maven-install-plugin.version}</version>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.apache.maven.plugins</groupId>
  481. <artifactId>maven-deploy-plugin</artifactId>
  482. <version>${maven-deploy-plugin.version}</version>
  483. </plugin>
  484. <plugin>
  485. <groupId>org.apache.maven.plugins</groupId>
  486. <artifactId>maven-gpg-plugin</artifactId>
  487. <version>${maven-gpg-plugin.version}</version>
  488. <configuration>
  489. <!-- Prevent gpg from using pinentry programs -->
  490. <gpgArguments>
  491. <arg>--pinentry-mode</arg>
  492. <arg>loopback</arg>
  493. </gpgArguments>
  494. </configuration>
  495. <executions>
  496. <execution>
  497. <phase>verify</phase>
  498. <goals>
  499. <goal>sign</goal>
  500. </goals>
  501. </execution>
  502. </executions>
  503. </plugin>
  504. <plugin>
  505. <groupId>org.springframework.boot</groupId>
  506. <artifactId>spring-boot-maven-plugin</artifactId>
  507. <version>${spring-boot.version}</version>
  508. <configuration>
  509. <executable>true</executable>
  510. <attach>false</attach>
  511. </configuration>
  512. <executions>
  513. <execution>
  514. <goals>
  515. <goal>repackage</goal>
  516. </goals>
  517. </execution>
  518. </executions>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.codehaus.mojo</groupId>
  522. <artifactId>findbugs-maven-plugin</artifactId>
  523. <version>3.0.3</version>
  524. <configuration>
  525. <xmlOutput>true</xmlOutput>
  526. <effort>Max</effort>
  527. <threshold>Low</threshold>
  528. <failOnError>false</failOnError>
  529. </configuration>
  530. </plugin>
  531. <plugin>
  532. <groupId>org.codehaus.mojo</groupId>
  533. <artifactId>cobertura-maven-plugin</artifactId>
  534. <version>2.7</version>
  535. <dependencies>
  536. <dependency>
  537. <groupId>ch.qos.logback</groupId>
  538. <artifactId>logback-classic</artifactId>
  539. <version>1.2.0</version>
  540. </dependency>
  541. </dependencies>
  542. </plugin>
  543. <plugin>
  544. <groupId>org.apache.maven.plugins</groupId>
  545. <artifactId>maven-assembly-plugin</artifactId>
  546. <version>2.6</version>
  547. </plugin>
  548. <plugin>
  549. <groupId>org.codehaus.mojo</groupId>
  550. <artifactId>versions-maven-plugin</artifactId>
  551. <version>2.2</version>
  552. </plugin>
  553. <plugin>
  554. <groupId>pl.project13.maven</groupId>
  555. <artifactId>git-commit-id-plugin</artifactId>
  556. <version>2.2.6</version>
  557. <executions>
  558. <execution>
  559. <goals>
  560. <goal>revision</goal>
  561. </goals>
  562. </execution>
  563. </executions>
  564. <configuration>
  565. <verbose>true</verbose>
  566. <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  567. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  568. <generateGitPropertiesFilename>${project.build.outputDirectory}/apollo-git.properties</generateGitPropertiesFilename>
  569. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  570. </configuration>
  571. </plugin>
  572. <plugin>
  573. <groupId>org.codehaus.mojo</groupId>
  574. <artifactId>flatten-maven-plugin</artifactId>
  575. <version>1.1.0</version>
  576. <configuration>
  577. <updatePomFile>true</updatePomFile>
  578. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  579. </configuration>
  580. <executions>
  581. <execution>
  582. <id>flatten</id>
  583. <phase>process-resources</phase>
  584. <goals>
  585. <goal>flatten</goal>
  586. </goals>
  587. </execution>
  588. <execution>
  589. <id>flatten.clean</id>
  590. <phase>clean</phase>
  591. <goals>
  592. <goal>clean</goal>
  593. </goals>
  594. </execution>
  595. </executions>
  596. </plugin>
  597. <!-- Need to set releases.repo and snapshots.repo properties in your .m2/settings.xml -->
  598. </plugins>
  599. </pluginManagement>
  600. <plugins>
  601. <plugin>
  602. <groupId>org.apache.maven.plugins</groupId>
  603. <artifactId>maven-compiler-plugin</artifactId>
  604. </plugin>
  605. <plugin>
  606. <groupId>org.apache.maven.plugins</groupId>
  607. <artifactId>maven-surefire-plugin</artifactId>
  608. <configuration>
  609. <trimStackTrace>false</trimStackTrace>
  610. </configuration>
  611. </plugin>
  612. <plugin>
  613. <groupId>org.apache.maven.plugins</groupId>
  614. <artifactId>maven-source-plugin</artifactId>
  615. </plugin>
  616. <plugin>
  617. <groupId>org.apache.maven.plugins</groupId>
  618. <artifactId>maven-war-plugin</artifactId>
  619. </plugin>
  620. <plugin>
  621. <groupId>org.apache.maven.plugins</groupId>
  622. <artifactId>maven-install-plugin</artifactId>
  623. </plugin>
  624. <plugin>
  625. <groupId>org.apache.maven.plugins</groupId>
  626. <artifactId>maven-deploy-plugin</artifactId>
  627. </plugin>
  628. <plugin>
  629. <groupId>org.codehaus.mojo</groupId>
  630. <artifactId>findbugs-maven-plugin</artifactId>
  631. </plugin>
  632. <plugin>
  633. <groupId>org.codehaus.mojo</groupId>
  634. <artifactId>versions-maven-plugin</artifactId>
  635. </plugin>
  636. <plugin>
  637. <groupId>org.apache.maven.plugins</groupId>
  638. <artifactId>maven-jar-plugin</artifactId>
  639. <configuration>
  640. <archive>
  641. <manifest>
  642. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  643. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  644. </manifest>
  645. </archive>
  646. </configuration>
  647. </plugin>
  648. <plugin>
  649. <groupId>pl.project13.maven</groupId>
  650. <artifactId>git-commit-id-plugin</artifactId>
  651. </plugin>
  652. <plugin>
  653. <groupId>org.codehaus.mojo</groupId>
  654. <artifactId>flatten-maven-plugin</artifactId>
  655. </plugin>
  656. </plugins>
  657. <resources>
  658. <resource>
  659. <directory>src/main/resources</directory>
  660. <filtering>true</filtering>
  661. <includes>
  662. <include>**/*.yml</include>
  663. <include>**/*.yaml</include>
  664. <include>**/*.properties</include>
  665. <include>**/*.xml</include>
  666. </includes>
  667. </resource>
  668. <resource>
  669. <directory>src/main/resources</directory>
  670. <filtering>false</filtering>
  671. <excludes>
  672. <exclude>**/*.yml</exclude>
  673. <exclude>**/*.yaml</exclude>
  674. <exclude>**/*.properties</exclude>
  675. <exclude>**/*.xml</exclude>
  676. </excludes>
  677. </resource>
  678. <resource>
  679. <directory>src/main/config</directory>
  680. <filtering>true</filtering>
  681. <includes>
  682. <include>application-github.properties</include>
  683. </includes>
  684. </resource>
  685. <resource>
  686. <directory>src/main/config</directory>
  687. <filtering>false</filtering>
  688. <excludes>
  689. <exclude>application-github.properties</exclude>
  690. </excludes>
  691. </resource>
  692. </resources>
  693. </build>
  694. <profiles>
  695. <profile>
  696. <!-- for travis usage -->
  697. <id>travis</id>
  698. <activation>
  699. <property>
  700. <name>env.TRAVIS</name>
  701. <value>true</value>
  702. </property>
  703. </activation>
  704. <build>
  705. <plugins>
  706. <plugin>
  707. <groupId>com.github.github</groupId>
  708. <artifactId>site-maven-plugin</artifactId>
  709. <version>0.12</version>
  710. <configuration>
  711. <message>Site for ${project.artifactId}, ${project.version}</message>
  712. <path>${github.path}</path>
  713. <merge>true</merge>
  714. </configuration>
  715. <executions>
  716. <execution>
  717. <goals>
  718. <goal>site</goal>
  719. </goals>
  720. <phase>site</phase>
  721. </execution>
  722. </executions>
  723. </plugin>
  724. <plugin>
  725. <groupId>org.jacoco</groupId>
  726. <artifactId>jacoco-maven-plugin</artifactId>
  727. <version>0.8.3</version>
  728. <executions>
  729. <execution>
  730. <id>prepare-agent</id>
  731. <goals>
  732. <goal>prepare-agent</goal>
  733. </goals>
  734. </execution>
  735. </executions>
  736. </plugin>
  737. <plugin>
  738. <groupId>org.eluder.coveralls</groupId>
  739. <artifactId>coveralls-maven-plugin</artifactId>
  740. <version>4.2.0</version>
  741. </plugin>
  742. </plugins>
  743. </build>
  744. </profile>
  745. <profile>
  746. <!-- for open source usage -->
  747. <id>github</id>
  748. <properties>
  749. <package.environment>github</package.environment>
  750. </properties>
  751. <activation>
  752. <activeByDefault>true</activeByDefault>
  753. </activation>
  754. </profile>
  755. <profile>
  756. <!-- for ctrip development -->
  757. <id>ctrip-dev</id>
  758. <properties>
  759. <package.environment>ctrip</package.environment>
  760. </properties>
  761. <dependencyManagement>
  762. <dependencies>
  763. <dependency>
  764. <groupId>org.springframework.boot</groupId>
  765. <artifactId>spring-boot-starter-web</artifactId>
  766. <version>${spring-boot.version}</version>
  767. <exclusions>
  768. <exclusion>
  769. <groupId>org.apache.tomcat.embed</groupId>
  770. <artifactId>tomcat-embed-logging-juli</artifactId>
  771. </exclusion>
  772. <!-- use ctrip modified version instead -->
  773. <exclusion>
  774. <groupId>org.apache.tomcat.embed</groupId>
  775. <artifactId>tomcat-embed-core</artifactId>
  776. </exclusion>
  777. </exclusions>
  778. </dependency>
  779. <!-- eureka -->
  780. <dependency>
  781. <groupId>org.springframework.cloud</groupId>
  782. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  783. <version>${spring-cloud.version}</version>
  784. <exclusions>
  785. <!-- already in java -->
  786. <exclusion>
  787. <groupId>stax</groupId>
  788. <artifactId>stax-api</artifactId>
  789. </exclusion>
  790. <exclusion>
  791. <groupId>javax.xml.stream</groupId>
  792. <artifactId>stax-api</artifactId>
  793. </exclusion>
  794. <!-- duplicated with spring-security-core -->
  795. <exclusion>
  796. <groupId>org.springframework.security</groupId>
  797. <artifactId>spring-security-crypto</artifactId>
  798. </exclusion>
  799. <!-- duplicated with xpp3:xpp3_min -->
  800. <exclusion>
  801. <groupId>xmlpull</groupId>
  802. <artifactId>xmlpull</artifactId>
  803. </exclusion>
  804. <!-- duplicated with netty-all -->
  805. <exclusion>
  806. <groupId>io.netty</groupId>
  807. <artifactId>netty-codec-http</artifactId>
  808. </exclusion>
  809. <exclusion>
  810. <groupId>io.netty</groupId>
  811. <artifactId>netty-buffer</artifactId>
  812. </exclusion>
  813. <exclusion>
  814. <groupId>io.netty</groupId>
  815. <artifactId>netty-common</artifactId>
  816. </exclusion>
  817. <exclusion>
  818. <groupId>io.netty</groupId>
  819. <artifactId>netty-transport-native-epoll</artifactId>
  820. </exclusion>
  821. <exclusion>
  822. <groupId>io.netty</groupId>
  823. <artifactId>netty-transport</artifactId>
  824. </exclusion>
  825. <!-- duplicated with commons-collections and commons-beanutils -->
  826. <exclusion>
  827. <groupId>commons-beanutils</groupId>
  828. <artifactId>commons-beanutils-core</artifactId>
  829. </exclusion>
  830. <!-- duplicated with spring-aop -->
  831. <exclusion>
  832. <groupId>aopalliance</groupId>
  833. <artifactId>aopalliance</artifactId>
  834. </exclusion>
  835. </exclusions>
  836. </dependency>
  837. <!-- end of eureka -->
  838. </dependencies>
  839. </dependencyManagement>
  840. <dependencies>
  841. <dependency>
  842. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  843. <artifactId>tomcat-embed-core</artifactId>
  844. </dependency>
  845. </dependencies>
  846. </profile>
  847. <profile>
  848. <id>nacos-discovery</id>
  849. <properties>
  850. <nacos.discovery.version>0.2.7</nacos.discovery.version>
  851. <fastjson.version>1.2.75</fastjson.version>
  852. </properties>
  853. <dependencyManagement>
  854. <dependencies>
  855. <dependency>
  856. <groupId>com.alibaba.boot</groupId>
  857. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  858. <version>${nacos.discovery.version}</version>
  859. </dependency>
  860. <dependency>
  861. <groupId>com.alibaba</groupId>
  862. <artifactId>fastjson</artifactId>
  863. <version>${fastjson.version}</version>
  864. </dependency>
  865. </dependencies>
  866. </dependencyManagement>
  867. </profile>
  868. <profile>
  869. <!-- for ctrip development with logging capability -->
  870. <id>ctrip-logging</id>
  871. <dependencies>
  872. <dependency>
  873. <groupId>com.dianping.cat</groupId>
  874. <artifactId>cat-client</artifactId>
  875. </dependency>
  876. <dependency>
  877. <groupId>com.ctrip.framework.clogging</groupId>
  878. <artifactId>clogging-agent</artifactId>
  879. </dependency>
  880. </dependencies>
  881. </profile>
  882. <profile>
  883. <!-- for ctrip production -->
  884. <id>ctrip</id>
  885. <properties>
  886. <package.environment>ctrip</package.environment>
  887. </properties>
  888. <dependencyManagement>
  889. <dependencies>
  890. <dependency>
  891. <groupId>org.springframework.boot</groupId>
  892. <artifactId>spring-boot-starter-web</artifactId>
  893. <version>${spring-boot.version}</version>
  894. <exclusions>
  895. <exclusion>
  896. <groupId>org.apache.tomcat.embed</groupId>
  897. <artifactId>tomcat-embed-logging-juli</artifactId>
  898. </exclusion>
  899. <!-- use ctrip modified version instead -->
  900. <exclusion>
  901. <groupId>org.apache.tomcat.embed</groupId>
  902. <artifactId>tomcat-embed-core</artifactId>
  903. </exclusion>
  904. </exclusions>
  905. </dependency>
  906. <!-- eureka -->
  907. <dependency>
  908. <groupId>org.springframework.cloud</groupId>
  909. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  910. <version>${spring-cloud.version}</version>
  911. <exclusions>
  912. <!-- already in java -->
  913. <exclusion>
  914. <groupId>stax</groupId>
  915. <artifactId>stax-api</artifactId>
  916. </exclusion>
  917. <exclusion>
  918. <groupId>javax.xml.stream</groupId>
  919. <artifactId>stax-api</artifactId>
  920. </exclusion>
  921. <!-- duplicated with spring-security-core -->
  922. <exclusion>
  923. <groupId>org.springframework.security</groupId>
  924. <artifactId>spring-security-crypto</artifactId>
  925. </exclusion>
  926. <!-- duplicated with xpp3:xpp3_min -->
  927. <exclusion>
  928. <groupId>xmlpull</groupId>
  929. <artifactId>xmlpull</artifactId>
  930. </exclusion>
  931. <!-- duplicated with netty-all -->
  932. <exclusion>
  933. <groupId>io.netty</groupId>
  934. <artifactId>netty-codec-http</artifactId>
  935. </exclusion>
  936. <exclusion>
  937. <groupId>io.netty</groupId>
  938. <artifactId>netty-buffer</artifactId>
  939. </exclusion>
  940. <exclusion>
  941. <groupId>io.netty</groupId>
  942. <artifactId>netty-common</artifactId>
  943. </exclusion>
  944. <exclusion>
  945. <groupId>io.netty</groupId>
  946. <artifactId>netty-transport-native-epoll</artifactId>
  947. </exclusion>
  948. <exclusion>
  949. <groupId>io.netty</groupId>
  950. <artifactId>netty-transport</artifactId>
  951. </exclusion>
  952. <!-- duplicated with commons-collections and commons-beanutils -->
  953. <exclusion>
  954. <groupId>commons-beanutils</groupId>
  955. <artifactId>commons-beanutils-core</artifactId>
  956. </exclusion>
  957. <!-- duplicated with spring-aop -->
  958. <exclusion>
  959. <groupId>aopalliance</groupId>
  960. <artifactId>aopalliance</artifactId>
  961. </exclusion>
  962. </exclusions>
  963. </dependency>
  964. <!-- end of eureka -->
  965. </dependencies>
  966. </dependencyManagement>
  967. <dependencies>
  968. <dependency>
  969. <groupId>com.dianping.cat</groupId>
  970. <artifactId>cat-client</artifactId>
  971. </dependency>
  972. <dependency>
  973. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  974. <artifactId>tomcat-embed-core</artifactId>
  975. </dependency>
  976. <dependency>
  977. <groupId>com.ctrip.framework.clogging</groupId>
  978. <artifactId>clogging-agent</artifactId>
  979. </dependency>
  980. <dependency>
  981. <groupId>com.ctrip.platform</groupId>
  982. <artifactId>ctrip-dal-client</artifactId>
  983. </dependency>
  984. </dependencies>
  985. </profile>
  986. <profile>
  987. <id>release</id>
  988. <build>
  989. <plugins>
  990. <plugin>
  991. <groupId>org.apache.maven.plugins</groupId>
  992. <artifactId>maven-javadoc-plugin</artifactId>
  993. </plugin>
  994. <plugin>
  995. <groupId>org.apache.maven.plugins</groupId>
  996. <artifactId>maven-gpg-plugin</artifactId>
  997. </plugin>
  998. </plugins>
  999. </build>
  1000. </profile>
  1001. <profile>
  1002. <id>configdb</id>
  1003. <build>
  1004. <plugins>
  1005. <plugin>
  1006. <groupId>org.flywaydb</groupId>
  1007. <artifactId>flyway-maven-plugin</artifactId>
  1008. <version>5.2.4</version>
  1009. <dependencies>
  1010. <dependency>
  1011. <groupId>mysql</groupId>
  1012. <artifactId>mysql-connector-java</artifactId>
  1013. <version>8.0.16</version>
  1014. </dependency>
  1015. </dependencies>
  1016. <configuration>
  1017. <configFile>scripts/flyway/flyway-configdb.properties</configFile>
  1018. </configuration>
  1019. <inherited>false</inherited>
  1020. </plugin>
  1021. </plugins>
  1022. </build>
  1023. </profile>
  1024. <profile>
  1025. <id>portaldb</id>
  1026. <build>
  1027. <plugins>
  1028. <plugin>
  1029. <groupId>org.flywaydb</groupId>
  1030. <artifactId>flyway-maven-plugin</artifactId>
  1031. <version>5.2.4</version>
  1032. <dependencies>
  1033. <dependency>
  1034. <groupId>mysql</groupId>
  1035. <artifactId>mysql-connector-java</artifactId>
  1036. <version>8.0.16</version>
  1037. </dependency>
  1038. </dependencies>
  1039. <configuration>
  1040. <configFile>scripts/flyway/flyway-portaldb.properties</configFile>
  1041. </configuration>
  1042. <inherited>false</inherited>
  1043. </plugin>
  1044. </plugins>
  1045. </build>
  1046. </profile>
  1047. </profiles>
  1048. <reporting>
  1049. <plugins>
  1050. <plugin>
  1051. <groupId>org.apache.maven.plugins</groupId>
  1052. <artifactId>maven-project-info-reports-plugin</artifactId>
  1053. <version>2.9</version>
  1054. <reportSets>
  1055. <reportSet>
  1056. <reports>
  1057. <report>index</report>
  1058. <report>summary</report>
  1059. <report>dependency-info</report>
  1060. <report>project-team</report>
  1061. <report>scm</report>
  1062. <report>issue-tracking</report>
  1063. <report>mailing-list</report>
  1064. <!-- <report>dependency-management</report> -->
  1065. <!-- <report>dependencies</report> -->
  1066. <!-- <report>dependency-convergence</report> -->
  1067. <report>cim</report>
  1068. <report>plugin-management</report>
  1069. <report>plugins</report>
  1070. <report>distribution-management</report>
  1071. <report>license</report>
  1072. <report>modules</report>
  1073. </reports>
  1074. </reportSet>
  1075. </reportSets>
  1076. </plugin>
  1077. <plugin>
  1078. <groupId>org.apache.maven.plugins</groupId>
  1079. <artifactId>maven-checkstyle-plugin</artifactId>
  1080. <version>2.17</version>
  1081. <configuration>
  1082. <configLocation>google_checks.xml</configLocation>
  1083. <headerLocation>LICENSE-2.0.txt</headerLocation>
  1084. </configuration>
  1085. </plugin>
  1086. <plugin>
  1087. <groupId>org.apache.maven.plugins</groupId>
  1088. <artifactId>maven-pmd-plugin</artifactId>
  1089. <version>3.6</version>
  1090. <configuration>
  1091. <aggregate>true</aggregate>
  1092. </configuration>
  1093. </plugin>
  1094. <plugin>
  1095. <groupId>org.codehaus.mojo</groupId>
  1096. <artifactId>findbugs-maven-plugin</artifactId>
  1097. <version>3.0.3</version>
  1098. </plugin>
  1099. </plugins>
  1100. </reporting>
  1101. <distributionManagement>
  1102. <repository>
  1103. <id>releases</id>
  1104. <url>${releases.repo}</url>
  1105. </repository>
  1106. <snapshotRepository>
  1107. <id>snapshots</id>
  1108. <url>${snapshots.repo}</url>
  1109. </snapshotRepository>
  1110. </distributionManagement>
  1111. </project>