pom.xml 31 KB

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