pom.xml 28 KB

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