pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.ctrip.framework.apollo</groupId>
  6. <artifactId>apollo</artifactId>
  7. <version>0.0.1</version>
  8. <name>Apollo</name>
  9. <packaging>pom</packaging>
  10. <description>Ctrip Configuration Center</description>
  11. <url>https://ctripcorp.github.io/apollo</url>
  12. <parent>
  13. <groupId>com.ctrip.framework</groupId>
  14. <artifactId>framework-parent</artifactId>
  15. <version>1.0</version>
  16. <relativePath>framework-parent</relativePath>
  17. </parent>
  18. <organization>
  19. <name>Ctrip, Inc.</name>
  20. <url>http://www.ctrip.com</url>
  21. </organization>
  22. <licenses>
  23. <license>
  24. <name>Apache License, Version 2.0</name>
  25. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  26. </license>
  27. </licenses>
  28. <scm>
  29. <url>https://github.com/ctripcorp/apollo</url>
  30. <connection>scm:git:git://github.com/ctripcorp/apollo.git</connection>
  31. <developerConnection>scm:git:ssh://git@github.com/ctripcorp/apollo.git</developerConnection>
  32. </scm>
  33. <ciManagement>
  34. <system>Travis CI</system>
  35. <url>https://travis-ci.org/ctripcorp/apollo</url>
  36. </ciManagement>
  37. <issueManagement>
  38. <system>github</system>
  39. <url>https://github.com/ctripcorp/apollo/issues</url>
  40. </issueManagement>
  41. <developers>
  42. <developer>
  43. <id>yiming187</id>
  44. <name>Billy(Yiming) Liu</name>
  45. <email>liuyiming.vip at gmail.com</email>
  46. <organization>Ctrip, Inc.</organization>
  47. <organizationUrl>http://www.ctrip.com</organizationUrl>
  48. <roles>
  49. <role>Developer</role>
  50. </roles>
  51. </developer>
  52. <developer>
  53. <id>nobodyiam</id>
  54. <name>Jason(Shun) Song</name>
  55. <email>nobodyiam at gmail.com</email>
  56. <organization>Ctrip, Inc.</organization>
  57. <organizationUrl>http://www.ctrip.com</organizationUrl>
  58. <roles>
  59. <role>Developer</role>
  60. </roles>
  61. </developer>
  62. <developer>
  63. <id>lepdou</id>
  64. <name>Le Zhang</name>
  65. <email>lepdou at gmail.com</email>
  66. <organization>Ctrip, Inc.</organization>
  67. <organizationUrl>http://www.ctrip.com</organizationUrl>
  68. <roles>
  69. <role>Developer</role>
  70. </roles>
  71. </developer>
  72. </developers>
  73. <properties>
  74. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  75. <java.version>1.8</java.version>
  76. <jetty.version>9.2.16.v20160414</jetty.version>
  77. <github.global.server>github</github.global.server>
  78. <github.global.oauth2Token>${env.GITHUB_OAUTH_TOKEN}</github.global.oauth2Token>
  79. </properties>
  80. <modules>
  81. <module>apollo-buildtools</module>
  82. <module>apollo-core</module>
  83. <module>apollo-client</module>
  84. <module>apollo-common</module>
  85. <module>apollo-biz</module>
  86. <module>apollo-configservice</module>
  87. <module>apollo-adminservice</module>
  88. <module>apollo-portal</module>
  89. <module>apollo-assembly</module>
  90. <module>apollo-demo</module>
  91. </modules>
  92. <dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>com.ctrip.framework.apollo</groupId>
  96. <artifactId>apollo-core</artifactId>
  97. <version>${project.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.ctrip.framework.apollo</groupId>
  101. <artifactId>apollo-common</artifactId>
  102. <version>${project.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.ctrip.framework.apollo</groupId>
  106. <artifactId>apollo-biz</artifactId>
  107. <version>${project.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.ctrip.framework.apollo</groupId>
  111. <artifactId>apollo-buildtools</artifactId>
  112. <version>${project.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.ctrip.framework.apollo</groupId>
  116. <artifactId>apollo-configservice</artifactId>
  117. <version>${project.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.ctrip.framework.apollo</groupId>
  121. <artifactId>apollo-adminservice</artifactId>
  122. <version>${project.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.ctrip.framework.apollo</groupId>
  126. <artifactId>apollo-portal</artifactId>
  127. <version>${project.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.ctrip.framework</groupId>
  131. <artifactId>framework-foundation</artifactId>
  132. <version>1.1.6</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>com.dianping.cat</groupId>
  136. <artifactId>cat-client</artifactId>
  137. <version>1.5.0</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.ctrip.platform</groupId>
  141. <artifactId>ctrip-dal-client</artifactId>
  142. <version>1.0.1.6</version>
  143. <exclusions>
  144. <exclusion>
  145. <artifactId>logback-core</artifactId>
  146. <groupId>ch.qos.logback</groupId>
  147. </exclusion>
  148. <exclusion>
  149. <artifactId>logback-classic</artifactId>
  150. <groupId>ch.qos.logback</groupId>
  151. </exclusion>
  152. </exclusions>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.ctrip.framework.clogging</groupId>
  156. <artifactId>clogging-agent</artifactId>
  157. <version>3.5.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. </exclusions>
  168. </dependency>
  169. <!--third party -->
  170. <dependency>
  171. <groupId>mysql</groupId>
  172. <artifactId>mysql-connector-java</artifactId>
  173. <version>5.1.39</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>com.google.guava</groupId>
  177. <artifactId>guava</artifactId>
  178. <version>19.0</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>ch.qos.logback</groupId>
  182. <artifactId>logback-classic</artifactId>
  183. <version>1.1.7</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.eclipse.jetty</groupId>
  187. <artifactId>jetty-server</artifactId>
  188. <version>${jetty.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.eclipse.jetty</groupId>
  192. <artifactId>jetty-util</artifactId>
  193. <version>${jetty.version}</version>
  194. </dependency>
  195. <!--for test -->
  196. <dependency>
  197. <groupId>com.h2database</groupId>
  198. <artifactId>h2</artifactId>
  199. <version>1.4.191</version>
  200. </dependency>
  201. <!-- declare Spring BOMs in order -->
  202. <dependency>
  203. <groupId>io.spring.platform</groupId>
  204. <artifactId>platform-bom</artifactId>
  205. <version>2.0.5.RELEASE</version>
  206. <type>pom</type>
  207. <scope>import</scope>
  208. </dependency>
  209. <dependency>
  210. <groupId>org.springframework.cloud</groupId>
  211. <artifactId>spring-cloud-netflix</artifactId>
  212. <version>1.1.0.RELEASE</version>
  213. <type>pom</type>
  214. <scope>import</scope>
  215. </dependency>
  216. </dependencies>
  217. </dependencyManagement>
  218. <dependencies>
  219. <dependency>
  220. <groupId>org.springframework.boot</groupId>
  221. <artifactId>spring-boot-starter-test</artifactId>
  222. <scope>test</scope>
  223. </dependency>
  224. </dependencies>
  225. <build>
  226. <pluginManagement>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.springframework.boot</groupId>
  230. <artifactId>spring-boot-maven-plugin</artifactId>
  231. <version>1.3.5.RELEASE</version>
  232. <executions>
  233. <execution>
  234. <goals>
  235. <goal>repackage</goal>
  236. </goals>
  237. </execution>
  238. </executions>
  239. </plugin>
  240. <plugin>
  241. <groupId>org.apache.maven.plugins</groupId>
  242. <artifactId>maven-war-plugin</artifactId>
  243. <version>2.6</version>
  244. <configuration>
  245. <failOnMissingWebXml>false</failOnMissingWebXml>
  246. </configuration>
  247. </plugin>
  248. <plugin>
  249. <groupId>org.apache.maven.plugins</groupId>
  250. <artifactId>maven-checkstyle-plugin</artifactId>
  251. <version>2.17</version>
  252. <dependencies>
  253. <dependency>
  254. <groupId>com.puppycrawl.tools</groupId>
  255. <artifactId>checkstyle</artifactId>
  256. <version>6.18</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>com.ctrip.framework.apollo</groupId>
  260. <artifactId>apollo-buildtools</artifactId>
  261. <version>${project.version}</version>
  262. </dependency>
  263. </dependencies>
  264. <configuration>
  265. <configLocation>google_checks.xml</configLocation>
  266. <headerLocation>LICENSE-2.0.txt</headerLocation>
  267. <failOnViolation>false</failOnViolation>
  268. <consoleOutput>true</consoleOutput>
  269. </configuration>
  270. </plugin>
  271. <plugin>
  272. <groupId>org.codehaus.mojo</groupId>
  273. <artifactId>findbugs-maven-plugin</artifactId>
  274. <version>3.0.3</version>
  275. <configuration>
  276. <xmlOutput>true</xmlOutput>
  277. <effort>Max</effort>
  278. <threshold>Low</threshold>
  279. <failOnError>false</failOnError>
  280. </configuration>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.codehaus.mojo</groupId>
  284. <artifactId>cobertura-maven-plugin</artifactId>
  285. <version>2.7</version>
  286. <dependencies>
  287. <dependency>
  288. <groupId>ch.qos.logback</groupId>
  289. <artifactId>logback-classic</artifactId>
  290. <version>1.1.7</version>
  291. </dependency>
  292. </dependencies>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-assembly-plugin</artifactId>
  297. <version>2.6</version>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.codehaus.mojo</groupId>
  301. <artifactId>versions-maven-plugin</artifactId>
  302. <version>2.2</version>
  303. </plugin>
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-jar-plugin</artifactId>
  307. <version>2.6</version>
  308. </plugin>
  309. </plugins>
  310. </pluginManagement>
  311. <plugins>
  312. <plugin>
  313. <groupId>org.apache.maven.plugins</groupId>
  314. <artifactId>maven-checkstyle-plugin</artifactId>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.codehaus.mojo</groupId>
  318. <artifactId>findbugs-maven-plugin</artifactId>
  319. </plugin>
  320. <plugin>
  321. <groupId>org.codehaus.mojo</groupId>
  322. <artifactId>versions-maven-plugin</artifactId>
  323. </plugin>
  324. <plugin>
  325. <groupId>org.apache.maven.plugins</groupId>
  326. <artifactId>maven-jar-plugin</artifactId>
  327. <configuration>
  328. <archive>
  329. <manifest>
  330. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  331. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  332. </manifest>
  333. </archive>
  334. </configuration>
  335. </plugin>
  336. </plugins>
  337. <resources>
  338. <resource>
  339. <directory>src/main/resources</directory>
  340. <filtering>true</filtering>
  341. <includes>
  342. <include>**/*.yml</include>
  343. <include>**/*.yaml</include>
  344. <include>**/*.properties</include>
  345. </includes>
  346. </resource>
  347. <resource>
  348. <directory>src/main/resources</directory>
  349. <filtering>false</filtering>
  350. <excludes>
  351. <exclude>**/*.yml</exclude>
  352. <exclude>**/*.yaml</exclude>
  353. <exclude>**/*.properties</exclude>
  354. </excludes>
  355. </resource>
  356. </resources>
  357. </build>
  358. <profiles>
  359. <profile>
  360. <id>travis</id>
  361. <activation>
  362. <property>
  363. <name>env.TRAVIS</name>
  364. <value>true</value>
  365. </property>
  366. </activation>
  367. <build>
  368. <plugins>
  369. <plugin>
  370. <groupId>com.github.github</groupId>
  371. <artifactId>site-maven-plugin</artifactId>
  372. <version>0.12</version>
  373. <configuration>
  374. <message>Site for ${project.artifactId}, ${project.version}</message>
  375. <path>${github.path}</path>
  376. <merge>true</merge>
  377. </configuration>
  378. <executions>
  379. <execution>
  380. <goals>
  381. <goal>site</goal>
  382. </goals>
  383. <phase>site</phase>
  384. </execution>
  385. </executions>
  386. </plugin>
  387. <plugin>
  388. <groupId>org.codehaus.mojo</groupId>
  389. <artifactId>cobertura-maven-plugin</artifactId>
  390. <configuration>
  391. <format>xml</format>
  392. <maxmem>256m</maxmem>
  393. <aggregate>true</aggregate>
  394. </configuration>
  395. </plugin>
  396. <plugin>
  397. <groupId>org.eluder.coveralls</groupId>
  398. <artifactId>coveralls-maven-plugin</artifactId>
  399. <version>4.1.0</version>
  400. </plugin>
  401. </plugins>
  402. </build>
  403. </profile>
  404. <profile>
  405. <id>dev</id>
  406. <properties>
  407. <package.environment>dev</package.environment>
  408. </properties>
  409. <activation>
  410. <activeByDefault>true</activeByDefault>
  411. </activation>
  412. </profile>
  413. <profile>
  414. <id>ctrip</id>
  415. <properties>
  416. <package.environment>ctrip</package.environment>
  417. </properties>
  418. <dependencies>
  419. <dependency>
  420. <groupId>com.ctrip.platform</groupId>
  421. <artifactId>ctrip-dal-client</artifactId>
  422. </dependency>
  423. <dependency>
  424. <groupId>com.ctrip.framework.clogging</groupId>
  425. <artifactId>clogging-agent</artifactId>
  426. </dependency>
  427. </dependencies>
  428. </profile>
  429. </profiles>
  430. <repositories>
  431. <repository>
  432. <id>spring-milestones</id>
  433. <name>Spring Milestones</name>
  434. <url>https://repo.spring.io/libs-milestone</url>
  435. <snapshots>
  436. <enabled>false</enabled>
  437. </snapshots>
  438. </repository>
  439. <repository>
  440. <id>internal.repo</id>
  441. <url>https://raw.github.com/ctripcorp/apollo/mvn-repo/</url>
  442. </repository>
  443. </repositories>
  444. <reporting>
  445. <plugins>
  446. <plugin>
  447. <groupId>org.apache.maven.plugins</groupId>
  448. <artifactId>maven-project-info-reports-plugin</artifactId>
  449. <version>2.9</version>
  450. <reportSets>
  451. <reportSet>
  452. <reports>
  453. <report>index</report>
  454. <report>summary</report>
  455. <report>dependency-info</report>
  456. <report>project-team</report>
  457. <report>scm</report>
  458. <report>issue-tracking</report>
  459. <report>mailing-list</report>
  460. <!-- <report>dependency-management</report> -->
  461. <!-- <report>dependencies</report> -->
  462. <!-- <report>dependency-convergence</report> -->
  463. <report>cim</report>
  464. <report>plugin-management</report>
  465. <report>plugins</report>
  466. <report>distribution-management</report>
  467. <report>license</report>
  468. <report>modules</report>
  469. </reports>
  470. </reportSet>
  471. </reportSets>
  472. </plugin>
  473. <plugin>
  474. <groupId>org.apache.maven.plugins</groupId>
  475. <artifactId>maven-checkstyle-plugin</artifactId>
  476. <version>2.17</version>
  477. <configuration>
  478. <configLocation>google_checks.xml</configLocation>
  479. <headerLocation>LICENSE-2.0.txt</headerLocation>
  480. </configuration>
  481. </plugin>
  482. <plugin>
  483. <groupId>org.apache.maven.plugins</groupId>
  484. <artifactId>maven-pmd-plugin</artifactId>
  485. <version>3.6</version>
  486. <configuration>
  487. <aggregate>true</aggregate>
  488. </configuration>
  489. </plugin>
  490. <plugin>
  491. <groupId>org.codehaus.mojo</groupId>
  492. <artifactId>findbugs-maven-plugin</artifactId>
  493. <version>3.0.3</version>
  494. </plugin>
  495. <plugin>
  496. <groupId>org.codehaus.mojo</groupId>
  497. <artifactId>cobertura-maven-plugin</artifactId>
  498. <version>2.7</version>
  499. <configuration>
  500. <aggregate>true</aggregate>
  501. </configuration>
  502. </plugin>
  503. </plugins>
  504. </reporting>
  505. </project>