1
0

pom.xml 30 KB

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