pom.xml 30 KB

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