pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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.apollo</groupId>
  6. <artifactId>apollo</artifactId>
  7. <version>0.0.1-SNAPSHOT</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.15.v20160210</jetty.version>
  77. <github.global.server>github</github.global.server>
  78. <github.global.oauth2Token>${env.GITHUB_OAUTH_TOKEN}</github.global.oauth2Token>
  79. <github.path></github.path>
  80. </properties>
  81. <modules>
  82. <module>apollo-buildtools</module>
  83. <module>apollo-core</module>
  84. <module>apollo-client</module>
  85. <module>apollo-common</module>
  86. <module>apollo-biz</module>
  87. <module>apollo-configservice</module>
  88. <module>apollo-adminservice</module>
  89. <module>apollo-portal</module>
  90. <module>apollo-demo</module>
  91. </modules>
  92. <dependencyManagement>
  93. <dependencies>
  94. <dependency>
  95. <groupId>com.ctrip.apollo</groupId>
  96. <artifactId>apollo-core</artifactId>
  97. <version>${project.version}</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.ctrip.apollo</groupId>
  101. <artifactId>apollo-common</artifactId>
  102. <version>${project.version}</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>com.ctrip.apollo</groupId>
  106. <artifactId>apollo-biz</artifactId>
  107. <version>${project.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.ctrip.apollo</groupId>
  111. <artifactId>apollo-buildtools</artifactId>
  112. <version>${project.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>com.ctrip.framework</groupId>
  116. <artifactId>framework-foundation</artifactId>
  117. <version>1.1.5</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.dianping.cat</groupId>
  121. <artifactId>cat-client</artifactId>
  122. <version>1.5.0</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>com.ctrip.platform</groupId>
  126. <artifactId>ctrip-dal-client</artifactId>
  127. <version>1.0.1.6</version>
  128. <exclusions>
  129. <exclusion>
  130. <artifactId>logback-core</artifactId>
  131. <groupId>ch.qos.logback</groupId>
  132. </exclusion>
  133. <exclusion>
  134. <artifactId>logback-classic</artifactId>
  135. <groupId>ch.qos.logback</groupId>
  136. </exclusion>
  137. </exclusions>
  138. </dependency>
  139. <!--third party -->
  140. <dependency>
  141. <groupId>mysql</groupId>
  142. <artifactId>mysql-connector-java</artifactId>
  143. <version>5.1.38</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>com.google.guava</groupId>
  147. <artifactId>guava</artifactId>
  148. <version>19.0</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>ch.qos.logback</groupId>
  152. <artifactId>logback-classic</artifactId>
  153. <version>1.1.7</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.eclipse.jetty</groupId>
  157. <artifactId>jetty-server</artifactId>
  158. <version>${jetty.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.eclipse.jetty</groupId>
  162. <artifactId>jetty-http</artifactId>
  163. <version>${jetty.version}</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.eclipse.jetty</groupId>
  167. <artifactId>jetty-io</artifactId>
  168. <version>${jetty.version}</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.eclipse.jetty</groupId>
  172. <artifactId>jetty-util</artifactId>
  173. <version>${jetty.version}</version>
  174. </dependency>
  175. <!--for test -->
  176. <dependency>
  177. <groupId>com.h2database</groupId>
  178. <artifactId>h2</artifactId>
  179. <version>1.4.191</version>
  180. </dependency>
  181. <!-- declare Spring BOMs in order -->
  182. <dependency>
  183. <groupId>io.spring.platform</groupId>
  184. <artifactId>platform-bom</artifactId>
  185. <version>2.0.3.RELEASE</version>
  186. <type>pom</type>
  187. <scope>import</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.springframework.cloud</groupId>
  191. <artifactId>spring-cloud-netflix</artifactId>
  192. <version>1.1.0.M5</version>
  193. <type>pom</type>
  194. <scope>import</scope>
  195. </dependency>
  196. </dependencies>
  197. </dependencyManagement>
  198. <dependencies>
  199. <dependency>
  200. <groupId>org.springframework.boot</groupId>
  201. <artifactId>spring-boot-starter-test</artifactId>
  202. <scope>test</scope>
  203. </dependency>
  204. </dependencies>
  205. <build>
  206. <pluginManagement>
  207. <plugins>
  208. <plugin>
  209. <groupId>org.springframework.boot</groupId>
  210. <artifactId>spring-boot-maven-plugin</artifactId>
  211. <version>1.3.3.RELEASE</version>
  212. <executions>
  213. <execution>
  214. <goals>
  215. <goal>repackage</goal>
  216. </goals>
  217. </execution>
  218. </executions>
  219. </plugin>
  220. <plugin>
  221. <groupId>org.apache.maven.plugins</groupId>
  222. <artifactId>maven-war-plugin</artifactId>
  223. <version>2.6</version>
  224. <configuration>
  225. <failOnMissingWebXml>false</failOnMissingWebXml>
  226. </configuration>
  227. </plugin>
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-checkstyle-plugin</artifactId>
  231. <version>2.17</version>
  232. <dependencies>
  233. <dependency>
  234. <groupId>com.puppycrawl.tools</groupId>
  235. <artifactId>checkstyle</artifactId>
  236. <version>6.17</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>com.ctrip.apollo</groupId>
  240. <artifactId>apollo-buildtools</artifactId>
  241. <version>0.0.1-SNAPSHOT</version>
  242. </dependency>
  243. </dependencies>
  244. <configuration>
  245. <configLocation>google_checks.xml</configLocation>
  246. <headerLocation>LICENSE-2.0.txt</headerLocation>
  247. <failOnViolation>false</failOnViolation>
  248. <consoleOutput>true</consoleOutput>
  249. </configuration>
  250. </plugin>
  251. <plugin>
  252. <groupId>org.codehaus.mojo</groupId>
  253. <artifactId>findbugs-maven-plugin</artifactId>
  254. <version>3.0.3</version>
  255. <configuration>
  256. <xmlOutput>true</xmlOutput>
  257. <effort>Max</effort>
  258. <threshold>Low</threshold>
  259. <failOnError>false</failOnError>
  260. </configuration>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.codehaus.mojo</groupId>
  264. <artifactId>cobertura-maven-plugin</artifactId>
  265. <version>2.7</version>
  266. <dependencies>
  267. <dependency>
  268. <groupId>ch.qos.logback</groupId>
  269. <artifactId>logback-classic</artifactId>
  270. <version>1.1.7</version>
  271. </dependency>
  272. </dependencies>
  273. </plugin>
  274. </plugins>
  275. </pluginManagement>
  276. <plugins>
  277. <plugin>
  278. <groupId>org.apache.maven.plugins</groupId>
  279. <artifactId>maven-checkstyle-plugin</artifactId>
  280. </plugin>
  281. <plugin>
  282. <groupId>org.codehaus.mojo</groupId>
  283. <artifactId>findbugs-maven-plugin</artifactId>
  284. </plugin>
  285. </plugins>
  286. </build>
  287. <profiles>
  288. <profile>
  289. <id>travis</id>
  290. <activation>
  291. <property>
  292. <name>env.TRAVIS</name>
  293. <value>true</value>
  294. </property>
  295. </activation>
  296. <build>
  297. <plugins>
  298. <plugin>
  299. <groupId>com.github.github</groupId>
  300. <artifactId>site-maven-plugin</artifactId>
  301. <version>0.12</version>
  302. <configuration>
  303. <message>Site for ${project.artifactId}, ${project.version}</message>
  304. <path>${github.path}</path>
  305. <merge>true</merge>
  306. </configuration>
  307. <executions>
  308. <execution>
  309. <goals>
  310. <goal>site</goal>
  311. </goals>
  312. <phase>site</phase>
  313. </execution>
  314. </executions>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.codehaus.mojo</groupId>
  318. <artifactId>cobertura-maven-plugin</artifactId>
  319. <configuration>
  320. <format>xml</format>
  321. <maxmem>256m</maxmem>
  322. <aggregate>true</aggregate>
  323. </configuration>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.eluder.coveralls</groupId>
  327. <artifactId>coveralls-maven-plugin</artifactId>
  328. <version>4.1.0</version>
  329. </plugin>
  330. </plugins>
  331. </build>
  332. </profile>
  333. <profile>
  334. <id>local</id>
  335. <properties>
  336. <package.environment>local</package.environment>
  337. </properties>
  338. <activation>
  339. <activeByDefault>true</activeByDefault>
  340. </activation>
  341. </profile>
  342. <profile>
  343. <id>ctrip</id>
  344. <properties>
  345. <package.environment>ctrip</package.environment>
  346. </properties>
  347. <dependencies>
  348. <dependency>
  349. <groupId>com.ctrip.platform</groupId>
  350. <artifactId>ctrip-dal-client</artifactId>
  351. </dependency>
  352. </dependencies>
  353. </profile>
  354. </profiles>
  355. <repositories>
  356. <repository>
  357. <id>spring-milestones</id>
  358. <name>Spring Milestones</name>
  359. <url>https://repo.spring.io/libs-milestone</url>
  360. <snapshots>
  361. <enabled>false</enabled>
  362. </snapshots>
  363. </repository>
  364. <repository>
  365. <id>internal.repo</id>
  366. <url>https://raw.github.com/ctripcorp/apollo/mvn-repo/</url>
  367. </repository>
  368. </repositories>
  369. <reporting>
  370. <plugins>
  371. <plugin>
  372. <groupId>org.apache.maven.plugins</groupId>
  373. <artifactId>maven-project-info-reports-plugin</artifactId>
  374. <version>2.9</version>
  375. <reportSets>
  376. <reportSet>
  377. <reports>
  378. <report>index</report>
  379. <report>summary</report>
  380. <report>dependency-info</report>
  381. <report>project-team</report>
  382. <report>scm</report>
  383. <report>issue-tracking</report>
  384. <report>mailing-list</report>
  385. <!-- <report>dependency-management</report> -->
  386. <!-- <report>dependencies</report> -->
  387. <!-- <report>dependency-convergence</report> -->
  388. <report>cim</report>
  389. <report>plugin-management</report>
  390. <report>plugins</report>
  391. <report>distribution-management</report>
  392. <report>license</report>
  393. <report>modules</report>
  394. </reports>
  395. </reportSet>
  396. </reportSets>
  397. </plugin>
  398. <plugin>
  399. <groupId>org.apache.maven.plugins</groupId>
  400. <artifactId>maven-checkstyle-plugin</artifactId>
  401. <version>2.17</version>
  402. <configuration>
  403. <configLocation>google_checks.xml</configLocation>
  404. <headerLocation>LICENSE-2.0.txt</headerLocation>
  405. </configuration>
  406. </plugin>
  407. <plugin>
  408. <groupId>org.apache.maven.plugins</groupId>
  409. <artifactId>maven-pmd-plugin</artifactId>
  410. <version>3.6</version>
  411. <configuration>
  412. <aggregate>true</aggregate>
  413. </configuration>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.codehaus.mojo</groupId>
  417. <artifactId>findbugs-maven-plugin</artifactId>
  418. <version>3.0.3</version>
  419. </plugin>
  420. <plugin>
  421. <groupId>org.codehaus.mojo</groupId>
  422. <artifactId>cobertura-maven-plugin</artifactId>
  423. <version>2.7</version>
  424. <configuration>
  425. <aggregate>true</aggregate>
  426. </configuration>
  427. </plugin>
  428. </plugins>
  429. </reporting>
  430. </project>