pom.xml 26 KB

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