pom.xml 33 KB

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