pom.xml 27 KB

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