pom.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047
  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.1</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. <!--for test -->
  280. <dependency>
  281. <groupId>com.h2database</groupId>
  282. <artifactId>h2</artifactId>
  283. <version>1.4.191</version>
  284. <scope>test</scope>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.awaitility</groupId>
  288. <artifactId>awaitility</artifactId>
  289. <version>4.0.3</version>
  290. <scope>test</scope>
  291. </dependency>
  292. <!-- declare Spring BOMs in order -->
  293. <dependency>
  294. <groupId>io.spring.platform</groupId>
  295. <artifactId>platform-bom</artifactId>
  296. <version>${platform-bom.version}</version>
  297. <type>pom</type>
  298. <scope>import</scope>
  299. </dependency>
  300. <dependency>
  301. <groupId>org.springframework.cloud</groupId>
  302. <artifactId>spring-cloud-dependencies</artifactId>
  303. <version>${spring-cloud.version}</version>
  304. <type>pom</type>
  305. <scope>import</scope>
  306. </dependency>
  307. <!-- ctrip modified -->
  308. <!-- removed duplicated javax/persistence classes -->
  309. <dependency>
  310. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  311. <artifactId>tomcat-embed-core</artifactId>
  312. <version>8.0.37</version>
  313. <exclusions>
  314. <exclusion>
  315. <groupId>org.apache.tomcat.embed</groupId>
  316. <artifactId>tomcat-embed-logging-juli</artifactId>
  317. </exclusion>
  318. </exclusions>
  319. </dependency>
  320. <!-- JDK 1.8+ -->
  321. <dependency>
  322. <groupId>javax.xml.bind</groupId>
  323. <artifactId>jaxb-api</artifactId>
  324. <version>${jaxb.version}</version>
  325. </dependency>
  326. <dependency>
  327. <groupId>com.sun.xml.bind</groupId>
  328. <artifactId>jaxb-impl</artifactId>
  329. <version>${jaxb.version}</version>
  330. </dependency>
  331. <dependency>
  332. <groupId>org.glassfish.jaxb</groupId>
  333. <artifactId>jaxb-runtime</artifactId>
  334. <version>${jaxb.version}</version>
  335. </dependency>
  336. <dependency>
  337. <groupId>javax.activation</groupId>
  338. <artifactId>activation</artifactId>
  339. <version>${javax.activation.version}</version>
  340. </dependency>
  341. <!-- JDK 11+ -->
  342. <dependency>
  343. <groupId>org.javassist</groupId>
  344. <artifactId>javassist</artifactId>
  345. <version>${javassist.version}</version>
  346. </dependency>
  347. <!-- end of JDK 11+ -->
  348. </dependencies>
  349. </dependencyManagement>
  350. <dependencies>
  351. <dependency>
  352. <groupId>org.springframework.boot</groupId>
  353. <artifactId>spring-boot-starter-test</artifactId>
  354. <scope>test</scope>
  355. <exclusions>
  356. <exclusion>
  357. <artifactId>spring-boot-starter</artifactId>
  358. <groupId>org.springframework.boot</groupId>
  359. </exclusion>
  360. </exclusions>
  361. </dependency>
  362. <dependency>
  363. <groupId>org.awaitility</groupId>
  364. <artifactId>awaitility</artifactId>
  365. <scope>test</scope>
  366. </dependency>
  367. </dependencies>
  368. <build>
  369. <pluginManagement>
  370. <plugins>
  371. <plugin>
  372. <groupId>org.apache.maven.plugins</groupId>
  373. <artifactId>maven-compiler-plugin</artifactId>
  374. <version>${maven-compiler-plugin.version}</version>
  375. <configuration>
  376. <source>${java.version}</source>
  377. <target>${java.version}</target>
  378. <encoding>${project.build.sourceEncoding}</encoding>
  379. </configuration>
  380. </plugin>
  381. <plugin>
  382. <groupId>org.apache.maven.plugins</groupId>
  383. <artifactId>maven-surefire-plugin</artifactId>
  384. <version>${maven-surefire-plugin.version}</version>
  385. </plugin>
  386. <plugin>
  387. <groupId>org.apache.maven.plugins</groupId>
  388. <artifactId>maven-source-plugin</artifactId>
  389. <version>${maven-source-plugin.version}</version>
  390. <executions>
  391. <execution>
  392. <id>attach-sources</id>
  393. <goals>
  394. <goal>jar-no-fork</goal>
  395. </goals>
  396. </execution>
  397. </executions>
  398. </plugin>
  399. <plugin>
  400. <groupId>org.apache.maven.plugins</groupId>
  401. <artifactId>maven-jar-plugin</artifactId>
  402. <version>${maven-jar-plugin.version}</version>
  403. </plugin>
  404. <plugin>
  405. <artifactId>maven-javadoc-plugin</artifactId>
  406. <version>${maven-javadoc-plugin.version}</version>
  407. <executions>
  408. <execution>
  409. <id>attach-javadoc</id>
  410. <goals>
  411. <goal>jar</goal>
  412. </goals>
  413. <configuration>
  414. <doclint>none</doclint>
  415. </configuration>
  416. </execution>
  417. </executions>
  418. <configuration>
  419. <show>public</show>
  420. <charset>UTF-8</charset>
  421. <encoding>UTF-8</encoding>
  422. <docencoding>UTF-8</docencoding>
  423. <links>
  424. <link>http://docs.oracle.com/javase/7/docs/api</link>
  425. </links>
  426. </configuration>
  427. </plugin>
  428. <plugin>
  429. <groupId>org.apache.maven.plugins</groupId>
  430. <artifactId>maven-war-plugin</artifactId>
  431. <version>${maven-war-plugin.version}</version>
  432. </plugin>
  433. <plugin>
  434. <groupId>org.apache.maven.plugins</groupId>
  435. <artifactId>maven-install-plugin</artifactId>
  436. <version>${maven-install-plugin.version}</version>
  437. </plugin>
  438. <plugin>
  439. <groupId>org.apache.maven.plugins</groupId>
  440. <artifactId>maven-deploy-plugin</artifactId>
  441. <version>${maven-deploy-plugin.version}</version>
  442. </plugin>
  443. <plugin>
  444. <groupId>org.apache.maven.plugins</groupId>
  445. <artifactId>maven-gpg-plugin</artifactId>
  446. <version>${maven-gpg-plugin.version}</version>
  447. <executions>
  448. <execution>
  449. <phase>verify</phase>
  450. <goals>
  451. <goal>sign</goal>
  452. </goals>
  453. </execution>
  454. </executions>
  455. </plugin>
  456. <plugin>
  457. <groupId>org.springframework.boot</groupId>
  458. <artifactId>spring-boot-maven-plugin</artifactId>
  459. <version>1.3.5.RELEASE</version>
  460. <executions>
  461. <execution>
  462. <goals>
  463. <goal>repackage</goal>
  464. </goals>
  465. </execution>
  466. </executions>
  467. </plugin>
  468. <plugin>
  469. <groupId>org.codehaus.mojo</groupId>
  470. <artifactId>findbugs-maven-plugin</artifactId>
  471. <version>3.0.3</version>
  472. <configuration>
  473. <xmlOutput>true</xmlOutput>
  474. <effort>Max</effort>
  475. <threshold>Low</threshold>
  476. <failOnError>false</failOnError>
  477. </configuration>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.codehaus.mojo</groupId>
  481. <artifactId>cobertura-maven-plugin</artifactId>
  482. <version>2.7</version>
  483. <dependencies>
  484. <dependency>
  485. <groupId>ch.qos.logback</groupId>
  486. <artifactId>logback-classic</artifactId>
  487. <version>1.1.7</version>
  488. </dependency>
  489. </dependencies>
  490. </plugin>
  491. <plugin>
  492. <groupId>org.apache.maven.plugins</groupId>
  493. <artifactId>maven-assembly-plugin</artifactId>
  494. <version>2.6</version>
  495. </plugin>
  496. <plugin>
  497. <groupId>org.codehaus.mojo</groupId>
  498. <artifactId>versions-maven-plugin</artifactId>
  499. <version>2.2</version>
  500. </plugin>
  501. <!-- Need to set releases.repo and snapshots.repo properties in your .m2/settings.xml -->
  502. </plugins>
  503. </pluginManagement>
  504. <plugins>
  505. <plugin>
  506. <groupId>org.apache.maven.plugins</groupId>
  507. <artifactId>maven-compiler-plugin</artifactId>
  508. </plugin>
  509. <plugin>
  510. <groupId>org.apache.maven.plugins</groupId>
  511. <artifactId>maven-surefire-plugin</artifactId>
  512. <configuration>
  513. <trimStackTrace>false</trimStackTrace>
  514. </configuration>
  515. </plugin>
  516. <plugin>
  517. <groupId>org.apache.maven.plugins</groupId>
  518. <artifactId>maven-source-plugin</artifactId>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.apache.maven.plugins</groupId>
  522. <artifactId>maven-war-plugin</artifactId>
  523. </plugin>
  524. <plugin>
  525. <groupId>org.apache.maven.plugins</groupId>
  526. <artifactId>maven-install-plugin</artifactId>
  527. </plugin>
  528. <plugin>
  529. <groupId>org.apache.maven.plugins</groupId>
  530. <artifactId>maven-deploy-plugin</artifactId>
  531. </plugin>
  532. <plugin>
  533. <groupId>org.codehaus.mojo</groupId>
  534. <artifactId>findbugs-maven-plugin</artifactId>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.codehaus.mojo</groupId>
  538. <artifactId>versions-maven-plugin</artifactId>
  539. </plugin>
  540. <plugin>
  541. <groupId>org.apache.maven.plugins</groupId>
  542. <artifactId>maven-jar-plugin</artifactId>
  543. <configuration>
  544. <archive>
  545. <manifest>
  546. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  547. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  548. </manifest>
  549. </archive>
  550. </configuration>
  551. </plugin>
  552. <plugin>
  553. <groupId>pl.project13.maven</groupId>
  554. <artifactId>git-commit-id-plugin</artifactId>
  555. <version>2.2.6</version>
  556. <executions>
  557. <execution>
  558. <goals>
  559. <goal>revision</goal>
  560. </goals>
  561. </execution>
  562. </executions>
  563. <configuration>
  564. <verbose>true</verbose>
  565. <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  566. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  567. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  568. </configuration>
  569. </plugin>
  570. <plugin>
  571. <groupId>org.codehaus.mojo</groupId>
  572. <artifactId>flatten-maven-plugin</artifactId>
  573. <version>1.1.0</version>
  574. <configuration>
  575. <updatePomFile>true</updatePomFile>
  576. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  577. </configuration>
  578. <executions>
  579. <execution>
  580. <id>flatten</id>
  581. <phase>process-resources</phase>
  582. <goals>
  583. <goal>flatten</goal>
  584. </goals>
  585. </execution>
  586. <execution>
  587. <id>flatten.clean</id>
  588. <phase>clean</phase>
  589. <goals>
  590. <goal>clean</goal>
  591. </goals>
  592. </execution>
  593. </executions>
  594. </plugin>
  595. </plugins>
  596. <resources>
  597. <resource>
  598. <directory>src/main/resources</directory>
  599. <filtering>true</filtering>
  600. <includes>
  601. <include>**/*.yml</include>
  602. <include>**/*.yaml</include>
  603. <include>**/*.properties</include>
  604. <include>**/*.xml</include>
  605. </includes>
  606. </resource>
  607. <resource>
  608. <directory>src/main/resources</directory>
  609. <filtering>false</filtering>
  610. <excludes>
  611. <exclude>**/*.yml</exclude>
  612. <exclude>**/*.yaml</exclude>
  613. <exclude>**/*.properties</exclude>
  614. <exclude>**/*.xml</exclude>
  615. </excludes>
  616. </resource>
  617. <resource>
  618. <directory>src/main/config</directory>
  619. <filtering>true</filtering>
  620. <includes>
  621. <include>application-github.properties</include>
  622. </includes>
  623. </resource>
  624. <resource>
  625. <directory>src/main/config</directory>
  626. <filtering>false</filtering>
  627. <excludes>
  628. <exclude>application-github.properties</exclude>
  629. </excludes>
  630. </resource>
  631. </resources>
  632. </build>
  633. <profiles>
  634. <profile>
  635. <!-- for travis usage -->
  636. <id>travis</id>
  637. <activation>
  638. <property>
  639. <name>env.TRAVIS</name>
  640. <value>true</value>
  641. </property>
  642. </activation>
  643. <build>
  644. <plugins>
  645. <plugin>
  646. <groupId>com.github.github</groupId>
  647. <artifactId>site-maven-plugin</artifactId>
  648. <version>0.12</version>
  649. <configuration>
  650. <message>Site for ${project.artifactId}, ${project.version}</message>
  651. <path>${github.path}</path>
  652. <merge>true</merge>
  653. </configuration>
  654. <executions>
  655. <execution>
  656. <goals>
  657. <goal>site</goal>
  658. </goals>
  659. <phase>site</phase>
  660. </execution>
  661. </executions>
  662. </plugin>
  663. <plugin>
  664. <groupId>org.jacoco</groupId>
  665. <artifactId>jacoco-maven-plugin</artifactId>
  666. <version>0.8.3</version>
  667. <executions>
  668. <execution>
  669. <id>prepare-agent</id>
  670. <goals>
  671. <goal>prepare-agent</goal>
  672. </goals>
  673. </execution>
  674. </executions>
  675. </plugin>
  676. <plugin>
  677. <groupId>org.eluder.coveralls</groupId>
  678. <artifactId>coveralls-maven-plugin</artifactId>
  679. <version>4.2.0</version>
  680. </plugin>
  681. </plugins>
  682. </build>
  683. </profile>
  684. <profile>
  685. <!-- for open source usage -->
  686. <id>github</id>
  687. <properties>
  688. <package.environment>github</package.environment>
  689. </properties>
  690. <activation>
  691. <activeByDefault>true</activeByDefault>
  692. </activation>
  693. </profile>
  694. <profile>
  695. <!-- for ctrip development -->
  696. <id>ctrip-dev</id>
  697. <properties>
  698. <package.environment>ctrip</package.environment>
  699. </properties>
  700. <dependencyManagement>
  701. <dependencies>
  702. <dependency>
  703. <groupId>org.springframework.boot</groupId>
  704. <artifactId>spring-boot-starter-web</artifactId>
  705. <version>${spring-boot.version}</version>
  706. <exclusions>
  707. <exclusion>
  708. <groupId>org.apache.tomcat.embed</groupId>
  709. <artifactId>tomcat-embed-logging-juli</artifactId>
  710. </exclusion>
  711. <!-- use ctrip modified version instead -->
  712. <exclusion>
  713. <groupId>org.apache.tomcat.embed</groupId>
  714. <artifactId>tomcat-embed-core</artifactId>
  715. </exclusion>
  716. </exclusions>
  717. </dependency>
  718. <!-- eureka -->
  719. <dependency>
  720. <groupId>org.springframework.cloud</groupId>
  721. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  722. <version>${spring-cloud.version}</version>
  723. <exclusions>
  724. <!-- already in java -->
  725. <exclusion>
  726. <groupId>stax</groupId>
  727. <artifactId>stax-api</artifactId>
  728. </exclusion>
  729. <exclusion>
  730. <groupId>javax.xml.stream</groupId>
  731. <artifactId>stax-api</artifactId>
  732. </exclusion>
  733. <!-- duplicated with spring-security-core -->
  734. <exclusion>
  735. <groupId>org.springframework.security</groupId>
  736. <artifactId>spring-security-crypto</artifactId>
  737. </exclusion>
  738. <!-- duplicated with xpp3:xpp3_min -->
  739. <exclusion>
  740. <groupId>xmlpull</groupId>
  741. <artifactId>xmlpull</artifactId>
  742. </exclusion>
  743. <!-- duplicated with netty-all -->
  744. <exclusion>
  745. <groupId>io.netty</groupId>
  746. <artifactId>netty-codec-http</artifactId>
  747. </exclusion>
  748. <exclusion>
  749. <groupId>io.netty</groupId>
  750. <artifactId>netty-buffer</artifactId>
  751. </exclusion>
  752. <exclusion>
  753. <groupId>io.netty</groupId>
  754. <artifactId>netty-common</artifactId>
  755. </exclusion>
  756. <exclusion>
  757. <groupId>io.netty</groupId>
  758. <artifactId>netty-transport-native-epoll</artifactId>
  759. </exclusion>
  760. <exclusion>
  761. <groupId>io.netty</groupId>
  762. <artifactId>netty-transport</artifactId>
  763. </exclusion>
  764. <!-- duplicated with commons-collections and commons-beanutils -->
  765. <exclusion>
  766. <groupId>commons-beanutils</groupId>
  767. <artifactId>commons-beanutils-core</artifactId>
  768. </exclusion>
  769. <!-- duplicated with spring-aop -->
  770. <exclusion>
  771. <groupId>aopalliance</groupId>
  772. <artifactId>aopalliance</artifactId>
  773. </exclusion>
  774. </exclusions>
  775. </dependency>
  776. <!-- end of eureka -->
  777. </dependencies>
  778. </dependencyManagement>
  779. <dependencies>
  780. <dependency>
  781. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  782. <artifactId>tomcat-embed-core</artifactId>
  783. </dependency>
  784. </dependencies>
  785. </profile>
  786. <profile>
  787. <!-- for ctrip development with logging capability -->
  788. <id>ctrip-logging</id>
  789. <dependencies>
  790. <dependency>
  791. <groupId>com.dianping.cat</groupId>
  792. <artifactId>cat-client</artifactId>
  793. </dependency>
  794. <dependency>
  795. <groupId>com.ctrip.framework.clogging</groupId>
  796. <artifactId>clogging-agent</artifactId>
  797. </dependency>
  798. </dependencies>
  799. </profile>
  800. <profile>
  801. <!-- for ctrip production -->
  802. <id>ctrip</id>
  803. <properties>
  804. <package.environment>ctrip</package.environment>
  805. </properties>
  806. <dependencyManagement>
  807. <dependencies>
  808. <dependency>
  809. <groupId>org.springframework.boot</groupId>
  810. <artifactId>spring-boot-starter-web</artifactId>
  811. <version>${spring-boot.version}</version>
  812. <exclusions>
  813. <exclusion>
  814. <groupId>org.apache.tomcat.embed</groupId>
  815. <artifactId>tomcat-embed-logging-juli</artifactId>
  816. </exclusion>
  817. <!-- use ctrip modified version instead -->
  818. <exclusion>
  819. <groupId>org.apache.tomcat.embed</groupId>
  820. <artifactId>tomcat-embed-core</artifactId>
  821. </exclusion>
  822. </exclusions>
  823. </dependency>
  824. <!-- eureka -->
  825. <dependency>
  826. <groupId>org.springframework.cloud</groupId>
  827. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  828. <version>${spring-cloud.version}</version>
  829. <exclusions>
  830. <!-- already in java -->
  831. <exclusion>
  832. <groupId>stax</groupId>
  833. <artifactId>stax-api</artifactId>
  834. </exclusion>
  835. <exclusion>
  836. <groupId>javax.xml.stream</groupId>
  837. <artifactId>stax-api</artifactId>
  838. </exclusion>
  839. <!-- duplicated with spring-security-core -->
  840. <exclusion>
  841. <groupId>org.springframework.security</groupId>
  842. <artifactId>spring-security-crypto</artifactId>
  843. </exclusion>
  844. <!-- duplicated with xpp3:xpp3_min -->
  845. <exclusion>
  846. <groupId>xmlpull</groupId>
  847. <artifactId>xmlpull</artifactId>
  848. </exclusion>
  849. <!-- duplicated with netty-all -->
  850. <exclusion>
  851. <groupId>io.netty</groupId>
  852. <artifactId>netty-codec-http</artifactId>
  853. </exclusion>
  854. <exclusion>
  855. <groupId>io.netty</groupId>
  856. <artifactId>netty-buffer</artifactId>
  857. </exclusion>
  858. <exclusion>
  859. <groupId>io.netty</groupId>
  860. <artifactId>netty-common</artifactId>
  861. </exclusion>
  862. <exclusion>
  863. <groupId>io.netty</groupId>
  864. <artifactId>netty-transport-native-epoll</artifactId>
  865. </exclusion>
  866. <exclusion>
  867. <groupId>io.netty</groupId>
  868. <artifactId>netty-transport</artifactId>
  869. </exclusion>
  870. <!-- duplicated with commons-collections and commons-beanutils -->
  871. <exclusion>
  872. <groupId>commons-beanutils</groupId>
  873. <artifactId>commons-beanutils-core</artifactId>
  874. </exclusion>
  875. <!-- duplicated with spring-aop -->
  876. <exclusion>
  877. <groupId>aopalliance</groupId>
  878. <artifactId>aopalliance</artifactId>
  879. </exclusion>
  880. </exclusions>
  881. </dependency>
  882. <!-- end of eureka -->
  883. </dependencies>
  884. </dependencyManagement>
  885. <dependencies>
  886. <dependency>
  887. <groupId>com.dianping.cat</groupId>
  888. <artifactId>cat-client</artifactId>
  889. </dependency>
  890. <dependency>
  891. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  892. <artifactId>tomcat-embed-core</artifactId>
  893. </dependency>
  894. <dependency>
  895. <groupId>com.ctrip.framework.clogging</groupId>
  896. <artifactId>clogging-agent</artifactId>
  897. </dependency>
  898. <dependency>
  899. <groupId>com.ctrip.platform</groupId>
  900. <artifactId>ctrip-dal-client</artifactId>
  901. </dependency>
  902. </dependencies>
  903. </profile>
  904. <profile>
  905. <id>release</id>
  906. <build>
  907. <plugins>
  908. <plugin>
  909. <groupId>org.apache.maven.plugins</groupId>
  910. <artifactId>maven-javadoc-plugin</artifactId>
  911. </plugin>
  912. <plugin>
  913. <groupId>org.apache.maven.plugins</groupId>
  914. <artifactId>maven-gpg-plugin</artifactId>
  915. </plugin>
  916. </plugins>
  917. </build>
  918. </profile>
  919. <profile>
  920. <id>configdb</id>
  921. <build>
  922. <plugins>
  923. <plugin>
  924. <groupId>org.flywaydb</groupId>
  925. <artifactId>flyway-maven-plugin</artifactId>
  926. <version>5.2.4</version>
  927. <dependencies>
  928. <dependency>
  929. <groupId>mysql</groupId>
  930. <artifactId>mysql-connector-java</artifactId>
  931. <version>8.0.16</version>
  932. </dependency>
  933. </dependencies>
  934. <configuration>
  935. <configFile>scripts/flyway/flyway-configdb.properties</configFile>
  936. </configuration>
  937. <inherited>false</inherited>
  938. </plugin>
  939. </plugins>
  940. </build>
  941. </profile>
  942. <profile>
  943. <id>portaldb</id>
  944. <build>
  945. <plugins>
  946. <plugin>
  947. <groupId>org.flywaydb</groupId>
  948. <artifactId>flyway-maven-plugin</artifactId>
  949. <version>5.2.4</version>
  950. <dependencies>
  951. <dependency>
  952. <groupId>mysql</groupId>
  953. <artifactId>mysql-connector-java</artifactId>
  954. <version>8.0.16</version>
  955. </dependency>
  956. </dependencies>
  957. <configuration>
  958. <configFile>scripts/flyway/flyway-portaldb.properties</configFile>
  959. </configuration>
  960. <inherited>false</inherited>
  961. </plugin>
  962. </plugins>
  963. </build>
  964. </profile>
  965. </profiles>
  966. <reporting>
  967. <plugins>
  968. <plugin>
  969. <groupId>org.apache.maven.plugins</groupId>
  970. <artifactId>maven-project-info-reports-plugin</artifactId>
  971. <version>2.9</version>
  972. <reportSets>
  973. <reportSet>
  974. <reports>
  975. <report>index</report>
  976. <report>summary</report>
  977. <report>dependency-info</report>
  978. <report>project-team</report>
  979. <report>scm</report>
  980. <report>issue-tracking</report>
  981. <report>mailing-list</report>
  982. <!-- <report>dependency-management</report> -->
  983. <!-- <report>dependencies</report> -->
  984. <!-- <report>dependency-convergence</report> -->
  985. <report>cim</report>
  986. <report>plugin-management</report>
  987. <report>plugins</report>
  988. <report>distribution-management</report>
  989. <report>license</report>
  990. <report>modules</report>
  991. </reports>
  992. </reportSet>
  993. </reportSets>
  994. </plugin>
  995. <plugin>
  996. <groupId>org.apache.maven.plugins</groupId>
  997. <artifactId>maven-checkstyle-plugin</artifactId>
  998. <version>2.17</version>
  999. <configuration>
  1000. <configLocation>google_checks.xml</configLocation>
  1001. <headerLocation>LICENSE-2.0.txt</headerLocation>
  1002. </configuration>
  1003. </plugin>
  1004. <plugin>
  1005. <groupId>org.apache.maven.plugins</groupId>
  1006. <artifactId>maven-pmd-plugin</artifactId>
  1007. <version>3.6</version>
  1008. <configuration>
  1009. <aggregate>true</aggregate>
  1010. </configuration>
  1011. </plugin>
  1012. <plugin>
  1013. <groupId>org.codehaus.mojo</groupId>
  1014. <artifactId>findbugs-maven-plugin</artifactId>
  1015. <version>3.0.3</version>
  1016. </plugin>
  1017. </plugins>
  1018. </reporting>
  1019. <distributionManagement>
  1020. <repository>
  1021. <id>releases</id>
  1022. <url>${releases.repo}</url>
  1023. </repository>
  1024. <snapshotRepository>
  1025. <id>snapshots</id>
  1026. <url>${snapshots.repo}</url>
  1027. </snapshotRepository>
  1028. </distributionManagement>
  1029. </project>