pom.xml 27 KB

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