pom.xml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2021 Apollo Authors
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. ~
  17. -->
  18. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  20. <modelVersion>4.0.0</modelVersion>
  21. <groupId>com.ctrip.framework.apollo</groupId>
  22. <artifactId>apollo</artifactId>
  23. <version>${revision}</version>
  24. <name>Apollo</name>
  25. <packaging>pom</packaging>
  26. <description>Ctrip Configuration Center</description>
  27. <url>https://github.com/ctripcorp/apollo</url>
  28. <organization>
  29. <name>Ctrip, Inc.</name>
  30. <url>http://www.ctrip.com</url>
  31. </organization>
  32. <licenses>
  33. <license>
  34. <name>Apache License, Version 2.0</name>
  35. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  36. </license>
  37. </licenses>
  38. <scm>
  39. <url>https://github.com/ctripcorp/apollo</url>
  40. <connection>scm:git:git://github.com/ctripcorp/apollo.git</connection>
  41. <developerConnection>scm:git:ssh://git@github.com/ctripcorp/apollo.git</developerConnection>
  42. </scm>
  43. <ciManagement>
  44. <system>GitHub Actions</system>
  45. <url>https://github.com/ctripcorp/apollo/actions</url>
  46. </ciManagement>
  47. <issueManagement>
  48. <system>github</system>
  49. <url>https://github.com/ctripcorp/apollo/issues</url>
  50. </issueManagement>
  51. <developers>
  52. <developer>
  53. <id>apollo</id>
  54. <name>The Apollo Project Contributors</name>
  55. <email>apollo-config@googlegroups.com</email>
  56. <url>https://www.apolloconfig.com/</url>
  57. </developer>
  58. </developers>
  59. <properties>
  60. <revision>1.9.1</revision>
  61. <java.version>1.8</java.version>
  62. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  63. <spring-boot.version>2.4.2</spring-boot.version>
  64. <spring-cloud.version>2020.0.1</spring-cloud.version>
  65. <jaxb.version>2.3.0</jaxb.version>
  66. <javax.activation.version>1.1.1</javax.activation.version>
  67. <javax.mail.version>1.6.2</javax.mail.version>
  68. <javassist.version>3.23.1-GA</javassist.version>
  69. <nacos-discovery-api.version>1.4.0</nacos-discovery-api.version>
  70. <!-- Plugins Version -->
  71. <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
  72. <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
  73. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  74. <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
  75. <maven-war-plugin.version>3.0.0</maven-war-plugin.version>
  76. <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
  77. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  78. <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
  79. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  80. <!-- for travis usage -->
  81. <github.global.server>github</github.global.server>
  82. <github.global.oauth2Token>${env.GITHUB_OAUTH_TOKEN}</github.global.oauth2Token>
  83. </properties>
  84. <modules>
  85. <module>apollo-buildtools</module>
  86. <module>apollo-core</module>
  87. <module>apollo-client</module>
  88. <module>apollo-client-config-data</module>
  89. <module>apollo-common</module>
  90. <module>apollo-biz</module>
  91. <module>apollo-configservice</module>
  92. <module>apollo-adminservice</module>
  93. <module>apollo-portal</module>
  94. <module>apollo-assembly</module>
  95. <module>apollo-demo</module>
  96. <module>apollo-mockserver</module>
  97. <module>apollo-openapi</module>
  98. </modules>
  99. <dependencyManagement>
  100. <dependencies>
  101. <dependency>
  102. <groupId>com.ctrip.framework.apollo</groupId>
  103. <artifactId>apollo-core</artifactId>
  104. <version>${project.version}</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.ctrip.framework.apollo</groupId>
  108. <artifactId>apollo-client</artifactId>
  109. <version>${project.version}</version>
  110. </dependency>
  111. <dependency>
  112. <groupId>com.ctrip.framework.apollo</groupId>
  113. <artifactId>apollo-common</artifactId>
  114. <version>${project.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>com.ctrip.framework.apollo</groupId>
  118. <artifactId>apollo-biz</artifactId>
  119. <version>${project.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.ctrip.framework.apollo</groupId>
  123. <artifactId>apollo-buildtools</artifactId>
  124. <version>${project.version}</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>com.ctrip.framework.apollo</groupId>
  128. <artifactId>apollo-configservice</artifactId>
  129. <version>${project.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.ctrip.framework.apollo</groupId>
  133. <artifactId>apollo-adminservice</artifactId>
  134. <version>${project.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>com.ctrip.framework.apollo</groupId>
  138. <artifactId>apollo-portal</artifactId>
  139. <version>${project.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.ctrip.framework.apollo</groupId>
  143. <artifactId>apollo-openapi</artifactId>
  144. <version>${project.version}</version>
  145. </dependency>
  146. <!-- ctrip internal dependencies, only used when ctrip profiles are enabled -->
  147. <dependency>
  148. <groupId>com.dianping.cat</groupId>
  149. <artifactId>cat-client</artifactId>
  150. <version>2.2.3</version>
  151. </dependency>
  152. <dependency>
  153. <groupId>com.ctrip.platform</groupId>
  154. <artifactId>ctrip-dal-client</artifactId>
  155. <version>1.0.2</version>
  156. <exclusions>
  157. <exclusion>
  158. <artifactId>logback-core</artifactId>
  159. <groupId>ch.qos.logback</groupId>
  160. </exclusion>
  161. <exclusion>
  162. <artifactId>logback-classic</artifactId>
  163. <groupId>ch.qos.logback</groupId>
  164. </exclusion>
  165. <exclusion>
  166. <groupId>commons-logging</groupId>
  167. <artifactId>commons-logging</artifactId>
  168. </exclusion>
  169. <!-- duplicated with xpp3:xpp3_min -->
  170. <exclusion>
  171. <groupId>xmlpull</groupId>
  172. <artifactId>xmlpull</artifactId>
  173. </exclusion>
  174. <!-- duplicated with bcpkix-jdk15on -->
  175. <exclusion>
  176. <groupId>org.bouncycastle</groupId>
  177. <artifactId>bcprov-jdk16</artifactId>
  178. </exclusion>
  179. <!-- duplicated with hibernate-jpa-2.1-api -->
  180. <exclusion>
  181. <groupId>javax.persistence</groupId>
  182. <artifactId>persistence-api</artifactId>
  183. </exclusion>
  184. </exclusions>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.ctrip.framework.clogging</groupId>
  188. <artifactId>clogging-agent</artifactId>
  189. <version>3.5.2</version>
  190. <exclusions>
  191. <exclusion>
  192. <artifactId>logback-core</artifactId>
  193. <groupId>ch.qos.logback</groupId>
  194. </exclusion>
  195. <exclusion>
  196. <artifactId>logback-classic</artifactId>
  197. <groupId>ch.qos.logback</groupId>
  198. </exclusion>
  199. <exclusion>
  200. <groupId>commons-logging</groupId>
  201. <artifactId>commons-logging</artifactId>
  202. </exclusion>
  203. </exclusions>
  204. </dependency>
  205. <dependency>
  206. <groupId>com.ctrip.credis</groupId>
  207. <artifactId>credis</artifactId>
  208. <version>2.4.11</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.ctrip.framework</groupId>
  212. <artifactId>vi</artifactId>
  213. <version>0.9.1</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.ctrip.framework.apollo-sso</groupId>
  217. <artifactId>apollo-sso-ctrip</artifactId>
  218. <version>1.1.0</version>
  219. <exclusions>
  220. <!-- partially duplicated with org.ow2.asm:asm -->
  221. <exclusion>
  222. <groupId>asm</groupId>
  223. <artifactId>asm</artifactId>
  224. </exclusion>
  225. </exclusions>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.ctrip.framework.apollo-ctrip-service</groupId>
  229. <artifactId>apollo-email-service</artifactId>
  230. <version>1.0.0</version>
  231. <exclusions>
  232. <exclusion>
  233. <groupId>javax.servlet</groupId>
  234. <artifactId>javax.servlet-api</artifactId>
  235. </exclusion>
  236. <exclusion>
  237. <groupId>commons-logging</groupId>
  238. <artifactId>commons-logging</artifactId>
  239. </exclusion>
  240. <!-- duplicated with commons-collections and commons-beanutils -->
  241. <exclusion>
  242. <groupId>commons-beanutils</groupId>
  243. <artifactId>commons-beanutils-core</artifactId>
  244. </exclusion>
  245. </exclusions>
  246. </dependency>
  247. <!--third party -->
  248. <dependency>
  249. <groupId>org.slf4j</groupId>
  250. <artifactId>slf4j-api</artifactId>
  251. <version>1.7.21</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>com.google.guava</groupId>
  255. <artifactId>guava</artifactId>
  256. <!-- for jdk 7 compatibility -->
  257. <version>29.0-android</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>com.google.code.gson</groupId>
  261. <artifactId>gson</artifactId>
  262. <version>2.8.0</version>
  263. </dependency>
  264. <dependency>
  265. <groupId>mysql</groupId>
  266. <artifactId>mysql-connector-java</artifactId>
  267. <version>8.0.16</version>
  268. </dependency>
  269. <dependency>
  270. <groupId>com.google.inject</groupId>
  271. <artifactId>guice</artifactId>
  272. <version>4.1.0</version>
  273. </dependency>
  274. <dependency>
  275. <groupId>commons-lang</groupId>
  276. <artifactId>commons-lang</artifactId>
  277. <version>2.6</version>
  278. </dependency>
  279. <!-- to fix CVE-2020-26217 -->
  280. <dependency>
  281. <groupId>com.thoughtworks.xstream</groupId>
  282. <artifactId>xstream</artifactId>
  283. <version>1.4.17</version>
  284. </dependency>
  285. <!--for test -->
  286. <dependency>
  287. <groupId>com.h2database</groupId>
  288. <artifactId>h2</artifactId>
  289. <version>1.4.191</version>
  290. <scope>test</scope>
  291. </dependency>
  292. <dependency>
  293. <groupId>org.awaitility</groupId>
  294. <artifactId>awaitility</artifactId>
  295. <version>4.0.3</version>
  296. <scope>test</scope>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.junit.vintage</groupId>
  300. <artifactId>junit-vintage-engine</artifactId>
  301. <version>5.7.0</version>
  302. <scope>test</scope>
  303. </dependency>
  304. <dependency>
  305. <groupId>com.github.stefanbirkner</groupId>
  306. <artifactId>system-lambda</artifactId>
  307. <version>1.2.0</version>
  308. <scope>test</scope>
  309. </dependency>
  310. <!-- declare Spring BOMs in order -->
  311. <dependency>
  312. <groupId>org.springframework.boot</groupId>
  313. <artifactId>spring-boot-dependencies</artifactId>
  314. <version>${spring-boot.version}</version>
  315. <type>pom</type>
  316. <scope>import</scope>
  317. </dependency>
  318. <dependency>
  319. <groupId>org.springframework.cloud</groupId>
  320. <artifactId>spring-cloud-dependencies</artifactId>
  321. <version>${spring-cloud.version}</version>
  322. <type>pom</type>
  323. <scope>import</scope>
  324. </dependency>
  325. <!-- required by eureka -->
  326. <dependency>
  327. <groupId>com.sun.jersey.contribs</groupId>
  328. <artifactId>jersey-apache-client4</artifactId>
  329. <version>1.19.4</version>
  330. </dependency>
  331. <!-- ctrip modified -->
  332. <!-- removed duplicated javax/persistence classes -->
  333. <dependency>
  334. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  335. <artifactId>tomcat-embed-core</artifactId>
  336. <version>8.0.37</version>
  337. <exclusions>
  338. <exclusion>
  339. <groupId>org.apache.tomcat.embed</groupId>
  340. <artifactId>tomcat-embed-logging-juli</artifactId>
  341. </exclusion>
  342. </exclusions>
  343. </dependency>
  344. <!-- JDK 1.8+ -->
  345. <dependency>
  346. <groupId>javax.xml.bind</groupId>
  347. <artifactId>jaxb-api</artifactId>
  348. <version>${jaxb.version}</version>
  349. </dependency>
  350. <dependency>
  351. <groupId>com.sun.xml.bind</groupId>
  352. <artifactId>jaxb-impl</artifactId>
  353. <version>${jaxb.version}</version>
  354. </dependency>
  355. <dependency>
  356. <groupId>org.glassfish.jaxb</groupId>
  357. <artifactId>jaxb-runtime</artifactId>
  358. <version>${jaxb.version}</version>
  359. </dependency>
  360. <dependency>
  361. <groupId>javax.activation</groupId>
  362. <artifactId>activation</artifactId>
  363. <version>${javax.activation.version}</version>
  364. </dependency>
  365. <dependency>
  366. <groupId>com.sun.mail</groupId>
  367. <artifactId>javax.mail</artifactId>
  368. <version>${javax.mail.version}</version>
  369. </dependency>
  370. <!-- JDK 11+ -->
  371. <dependency>
  372. <groupId>org.javassist</groupId>
  373. <artifactId>javassist</artifactId>
  374. <version>${javassist.version}</version>
  375. </dependency>
  376. <!-- end of JDK 11+ -->
  377. </dependencies>
  378. </dependencyManagement>
  379. <dependencies>
  380. <dependency>
  381. <groupId>org.springframework.boot</groupId>
  382. <artifactId>spring-boot-starter-test</artifactId>
  383. <scope>test</scope>
  384. <exclusions>
  385. <exclusion>
  386. <artifactId>spring-boot-starter</artifactId>
  387. <groupId>org.springframework.boot</groupId>
  388. </exclusion>
  389. </exclusions>
  390. </dependency>
  391. <dependency>
  392. <groupId>org.awaitility</groupId>
  393. <artifactId>awaitility</artifactId>
  394. <scope>test</scope>
  395. </dependency>
  396. <!-- for junit 4 -->
  397. <dependency>
  398. <groupId>org.junit.vintage</groupId>
  399. <artifactId>junit-vintage-engine</artifactId>
  400. <scope>test</scope>
  401. <exclusions>
  402. <exclusion>
  403. <groupId>org.hamcrest</groupId>
  404. <artifactId>hamcrest-core</artifactId>
  405. </exclusion>
  406. </exclusions>
  407. </dependency>
  408. </dependencies>
  409. <build>
  410. <pluginManagement>
  411. <plugins>
  412. <plugin>
  413. <groupId>org.apache.maven.plugins</groupId>
  414. <artifactId>maven-compiler-plugin</artifactId>
  415. <version>${maven-compiler-plugin.version}</version>
  416. <configuration>
  417. <source>${java.version}</source>
  418. <target>${java.version}</target>
  419. <encoding>${project.build.sourceEncoding}</encoding>
  420. </configuration>
  421. </plugin>
  422. <plugin>
  423. <groupId>org.apache.maven.plugins</groupId>
  424. <artifactId>maven-surefire-plugin</artifactId>
  425. <version>${maven-surefire-plugin.version}</version>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-source-plugin</artifactId>
  430. <version>${maven-source-plugin.version}</version>
  431. <executions>
  432. <execution>
  433. <id>attach-sources</id>
  434. <goals>
  435. <goal>jar-no-fork</goal>
  436. </goals>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. <plugin>
  441. <groupId>org.apache.maven.plugins</groupId>
  442. <artifactId>maven-jar-plugin</artifactId>
  443. <version>${maven-jar-plugin.version}</version>
  444. </plugin>
  445. <plugin>
  446. <artifactId>maven-javadoc-plugin</artifactId>
  447. <version>${maven-javadoc-plugin.version}</version>
  448. <executions>
  449. <execution>
  450. <id>attach-javadoc</id>
  451. <goals>
  452. <goal>jar</goal>
  453. </goals>
  454. <configuration>
  455. <doclint>none</doclint>
  456. </configuration>
  457. </execution>
  458. </executions>
  459. <configuration>
  460. <show>public</show>
  461. <charset>UTF-8</charset>
  462. <encoding>UTF-8</encoding>
  463. <docencoding>UTF-8</docencoding>
  464. <links>
  465. <link>http://docs.oracle.com/javase/7/docs/api</link>
  466. </links>
  467. </configuration>
  468. </plugin>
  469. <plugin>
  470. <groupId>org.apache.maven.plugins</groupId>
  471. <artifactId>maven-war-plugin</artifactId>
  472. <version>${maven-war-plugin.version}</version>
  473. </plugin>
  474. <plugin>
  475. <groupId>org.apache.maven.plugins</groupId>
  476. <artifactId>maven-install-plugin</artifactId>
  477. <version>${maven-install-plugin.version}</version>
  478. </plugin>
  479. <plugin>
  480. <groupId>org.apache.maven.plugins</groupId>
  481. <artifactId>maven-deploy-plugin</artifactId>
  482. <version>${maven-deploy-plugin.version}</version>
  483. </plugin>
  484. <plugin>
  485. <groupId>org.apache.maven.plugins</groupId>
  486. <artifactId>maven-gpg-plugin</artifactId>
  487. <version>${maven-gpg-plugin.version}</version>
  488. <executions>
  489. <execution>
  490. <phase>verify</phase>
  491. <goals>
  492. <goal>sign</goal>
  493. </goals>
  494. </execution>
  495. </executions>
  496. </plugin>
  497. <plugin>
  498. <groupId>org.springframework.boot</groupId>
  499. <artifactId>spring-boot-maven-plugin</artifactId>
  500. <version>${spring-boot.version}</version>
  501. <configuration>
  502. <executable>true</executable>
  503. <attach>false</attach>
  504. </configuration>
  505. <executions>
  506. <execution>
  507. <goals>
  508. <goal>repackage</goal>
  509. </goals>
  510. </execution>
  511. </executions>
  512. </plugin>
  513. <plugin>
  514. <groupId>org.codehaus.mojo</groupId>
  515. <artifactId>findbugs-maven-plugin</artifactId>
  516. <version>3.0.3</version>
  517. <configuration>
  518. <xmlOutput>true</xmlOutput>
  519. <effort>Max</effort>
  520. <threshold>Low</threshold>
  521. <failOnError>false</failOnError>
  522. </configuration>
  523. </plugin>
  524. <plugin>
  525. <groupId>org.codehaus.mojo</groupId>
  526. <artifactId>cobertura-maven-plugin</artifactId>
  527. <version>2.7</version>
  528. <dependencies>
  529. <dependency>
  530. <groupId>ch.qos.logback</groupId>
  531. <artifactId>logback-classic</artifactId>
  532. <version>1.2.0</version>
  533. </dependency>
  534. </dependencies>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.apache.maven.plugins</groupId>
  538. <artifactId>maven-assembly-plugin</artifactId>
  539. <version>2.6</version>
  540. </plugin>
  541. <plugin>
  542. <groupId>org.codehaus.mojo</groupId>
  543. <artifactId>versions-maven-plugin</artifactId>
  544. <version>2.2</version>
  545. </plugin>
  546. <plugin>
  547. <groupId>pl.project13.maven</groupId>
  548. <artifactId>git-commit-id-plugin</artifactId>
  549. <version>2.2.6</version>
  550. <executions>
  551. <execution>
  552. <goals>
  553. <goal>revision</goal>
  554. </goals>
  555. </execution>
  556. </executions>
  557. <configuration>
  558. <verbose>true</verbose>
  559. <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  560. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  561. <generateGitPropertiesFilename>${project.build.outputDirectory}/apollo-git.properties</generateGitPropertiesFilename>
  562. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  563. </configuration>
  564. </plugin>
  565. <plugin>
  566. <groupId>org.codehaus.mojo</groupId>
  567. <artifactId>flatten-maven-plugin</artifactId>
  568. <version>1.1.0</version>
  569. <configuration>
  570. <updatePomFile>true</updatePomFile>
  571. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  572. </configuration>
  573. <executions>
  574. <execution>
  575. <id>flatten</id>
  576. <phase>process-resources</phase>
  577. <goals>
  578. <goal>flatten</goal>
  579. </goals>
  580. </execution>
  581. <execution>
  582. <id>flatten.clean</id>
  583. <phase>clean</phase>
  584. <goals>
  585. <goal>clean</goal>
  586. </goals>
  587. </execution>
  588. </executions>
  589. </plugin>
  590. <!-- Need to set releases.repo and snapshots.repo properties in your .m2/settings.xml -->
  591. </plugins>
  592. </pluginManagement>
  593. <plugins>
  594. <plugin>
  595. <groupId>org.apache.maven.plugins</groupId>
  596. <artifactId>maven-compiler-plugin</artifactId>
  597. </plugin>
  598. <plugin>
  599. <groupId>org.apache.maven.plugins</groupId>
  600. <artifactId>maven-surefire-plugin</artifactId>
  601. <configuration>
  602. <trimStackTrace>false</trimStackTrace>
  603. </configuration>
  604. </plugin>
  605. <plugin>
  606. <groupId>org.apache.maven.plugins</groupId>
  607. <artifactId>maven-source-plugin</artifactId>
  608. </plugin>
  609. <plugin>
  610. <groupId>org.apache.maven.plugins</groupId>
  611. <artifactId>maven-war-plugin</artifactId>
  612. </plugin>
  613. <plugin>
  614. <groupId>org.apache.maven.plugins</groupId>
  615. <artifactId>maven-install-plugin</artifactId>
  616. </plugin>
  617. <plugin>
  618. <groupId>org.apache.maven.plugins</groupId>
  619. <artifactId>maven-deploy-plugin</artifactId>
  620. </plugin>
  621. <plugin>
  622. <groupId>org.codehaus.mojo</groupId>
  623. <artifactId>findbugs-maven-plugin</artifactId>
  624. </plugin>
  625. <plugin>
  626. <groupId>org.codehaus.mojo</groupId>
  627. <artifactId>versions-maven-plugin</artifactId>
  628. </plugin>
  629. <plugin>
  630. <groupId>org.apache.maven.plugins</groupId>
  631. <artifactId>maven-jar-plugin</artifactId>
  632. <configuration>
  633. <archive>
  634. <manifest>
  635. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  636. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  637. </manifest>
  638. </archive>
  639. </configuration>
  640. </plugin>
  641. <plugin>
  642. <groupId>pl.project13.maven</groupId>
  643. <artifactId>git-commit-id-plugin</artifactId>
  644. </plugin>
  645. <plugin>
  646. <groupId>org.codehaus.mojo</groupId>
  647. <artifactId>flatten-maven-plugin</artifactId>
  648. </plugin>
  649. </plugins>
  650. <resources>
  651. <resource>
  652. <directory>src/main/resources</directory>
  653. <filtering>true</filtering>
  654. <includes>
  655. <include>**/*.yml</include>
  656. <include>**/*.yaml</include>
  657. <include>**/*.properties</include>
  658. <include>**/*.xml</include>
  659. </includes>
  660. </resource>
  661. <resource>
  662. <directory>src/main/resources</directory>
  663. <filtering>false</filtering>
  664. <excludes>
  665. <exclude>**/*.yml</exclude>
  666. <exclude>**/*.yaml</exclude>
  667. <exclude>**/*.properties</exclude>
  668. <exclude>**/*.xml</exclude>
  669. </excludes>
  670. </resource>
  671. <resource>
  672. <directory>src/main/config</directory>
  673. <filtering>true</filtering>
  674. <includes>
  675. <include>application-github.properties</include>
  676. </includes>
  677. </resource>
  678. <resource>
  679. <directory>src/main/config</directory>
  680. <filtering>false</filtering>
  681. <excludes>
  682. <exclude>application-github.properties</exclude>
  683. </excludes>
  684. </resource>
  685. </resources>
  686. </build>
  687. <profiles>
  688. <profile>
  689. <!-- for travis usage -->
  690. <id>travis</id>
  691. <activation>
  692. <property>
  693. <name>env.TRAVIS</name>
  694. <value>true</value>
  695. </property>
  696. </activation>
  697. <build>
  698. <plugins>
  699. <plugin>
  700. <groupId>com.github.github</groupId>
  701. <artifactId>site-maven-plugin</artifactId>
  702. <version>0.12</version>
  703. <configuration>
  704. <message>Site for ${project.artifactId}, ${project.version}</message>
  705. <path>${github.path}</path>
  706. <merge>true</merge>
  707. </configuration>
  708. <executions>
  709. <execution>
  710. <goals>
  711. <goal>site</goal>
  712. </goals>
  713. <phase>site</phase>
  714. </execution>
  715. </executions>
  716. </plugin>
  717. <plugin>
  718. <groupId>org.jacoco</groupId>
  719. <artifactId>jacoco-maven-plugin</artifactId>
  720. <version>0.8.3</version>
  721. <executions>
  722. <execution>
  723. <id>prepare-agent</id>
  724. <goals>
  725. <goal>prepare-agent</goal>
  726. </goals>
  727. </execution>
  728. </executions>
  729. </plugin>
  730. <plugin>
  731. <groupId>org.eluder.coveralls</groupId>
  732. <artifactId>coveralls-maven-plugin</artifactId>
  733. <version>4.2.0</version>
  734. </plugin>
  735. </plugins>
  736. </build>
  737. </profile>
  738. <profile>
  739. <!-- for open source usage -->
  740. <id>github</id>
  741. <properties>
  742. <package.environment>github</package.environment>
  743. </properties>
  744. <activation>
  745. <activeByDefault>true</activeByDefault>
  746. </activation>
  747. </profile>
  748. <profile>
  749. <!-- for ctrip development -->
  750. <id>ctrip-dev</id>
  751. <properties>
  752. <package.environment>ctrip</package.environment>
  753. </properties>
  754. <dependencyManagement>
  755. <dependencies>
  756. <dependency>
  757. <groupId>org.springframework.boot</groupId>
  758. <artifactId>spring-boot-starter-web</artifactId>
  759. <version>${spring-boot.version}</version>
  760. <exclusions>
  761. <exclusion>
  762. <groupId>org.apache.tomcat.embed</groupId>
  763. <artifactId>tomcat-embed-logging-juli</artifactId>
  764. </exclusion>
  765. <!-- use ctrip modified version instead -->
  766. <exclusion>
  767. <groupId>org.apache.tomcat.embed</groupId>
  768. <artifactId>tomcat-embed-core</artifactId>
  769. </exclusion>
  770. </exclusions>
  771. </dependency>
  772. <!-- eureka -->
  773. <dependency>
  774. <groupId>org.springframework.cloud</groupId>
  775. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  776. <version>${spring-cloud.version}</version>
  777. <exclusions>
  778. <!-- already in java -->
  779. <exclusion>
  780. <groupId>stax</groupId>
  781. <artifactId>stax-api</artifactId>
  782. </exclusion>
  783. <exclusion>
  784. <groupId>javax.xml.stream</groupId>
  785. <artifactId>stax-api</artifactId>
  786. </exclusion>
  787. <!-- duplicated with spring-security-core -->
  788. <exclusion>
  789. <groupId>org.springframework.security</groupId>
  790. <artifactId>spring-security-crypto</artifactId>
  791. </exclusion>
  792. <!-- duplicated with xpp3:xpp3_min -->
  793. <exclusion>
  794. <groupId>xmlpull</groupId>
  795. <artifactId>xmlpull</artifactId>
  796. </exclusion>
  797. <!-- duplicated with netty-all -->
  798. <exclusion>
  799. <groupId>io.netty</groupId>
  800. <artifactId>netty-codec-http</artifactId>
  801. </exclusion>
  802. <exclusion>
  803. <groupId>io.netty</groupId>
  804. <artifactId>netty-buffer</artifactId>
  805. </exclusion>
  806. <exclusion>
  807. <groupId>io.netty</groupId>
  808. <artifactId>netty-common</artifactId>
  809. </exclusion>
  810. <exclusion>
  811. <groupId>io.netty</groupId>
  812. <artifactId>netty-transport-native-epoll</artifactId>
  813. </exclusion>
  814. <exclusion>
  815. <groupId>io.netty</groupId>
  816. <artifactId>netty-transport</artifactId>
  817. </exclusion>
  818. <!-- duplicated with commons-collections and commons-beanutils -->
  819. <exclusion>
  820. <groupId>commons-beanutils</groupId>
  821. <artifactId>commons-beanutils-core</artifactId>
  822. </exclusion>
  823. <!-- duplicated with spring-aop -->
  824. <exclusion>
  825. <groupId>aopalliance</groupId>
  826. <artifactId>aopalliance</artifactId>
  827. </exclusion>
  828. </exclusions>
  829. </dependency>
  830. <!-- end of eureka -->
  831. </dependencies>
  832. </dependencyManagement>
  833. <dependencies>
  834. <dependency>
  835. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  836. <artifactId>tomcat-embed-core</artifactId>
  837. </dependency>
  838. </dependencies>
  839. </profile>
  840. <profile>
  841. <id>nacos-discovery</id>
  842. <properties>
  843. <nacos.discovery.version>0.2.7</nacos.discovery.version>
  844. <fastjson.version>1.2.75</fastjson.version>
  845. </properties>
  846. <dependencyManagement>
  847. <dependencies>
  848. <dependency>
  849. <groupId>com.alibaba.boot</groupId>
  850. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  851. <version>${nacos.discovery.version}</version>
  852. </dependency>
  853. <dependency>
  854. <groupId>com.alibaba</groupId>
  855. <artifactId>fastjson</artifactId>
  856. <version>${fastjson.version}</version>
  857. </dependency>
  858. </dependencies>
  859. </dependencyManagement>
  860. </profile>
  861. <profile>
  862. <!-- for ctrip development with logging capability -->
  863. <id>ctrip-logging</id>
  864. <dependencies>
  865. <dependency>
  866. <groupId>com.dianping.cat</groupId>
  867. <artifactId>cat-client</artifactId>
  868. </dependency>
  869. <dependency>
  870. <groupId>com.ctrip.framework.clogging</groupId>
  871. <artifactId>clogging-agent</artifactId>
  872. </dependency>
  873. </dependencies>
  874. </profile>
  875. <profile>
  876. <!-- for ctrip production -->
  877. <id>ctrip</id>
  878. <properties>
  879. <package.environment>ctrip</package.environment>
  880. </properties>
  881. <dependencyManagement>
  882. <dependencies>
  883. <dependency>
  884. <groupId>org.springframework.boot</groupId>
  885. <artifactId>spring-boot-starter-web</artifactId>
  886. <version>${spring-boot.version}</version>
  887. <exclusions>
  888. <exclusion>
  889. <groupId>org.apache.tomcat.embed</groupId>
  890. <artifactId>tomcat-embed-logging-juli</artifactId>
  891. </exclusion>
  892. <!-- use ctrip modified version instead -->
  893. <exclusion>
  894. <groupId>org.apache.tomcat.embed</groupId>
  895. <artifactId>tomcat-embed-core</artifactId>
  896. </exclusion>
  897. </exclusions>
  898. </dependency>
  899. <!-- eureka -->
  900. <dependency>
  901. <groupId>org.springframework.cloud</groupId>
  902. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  903. <version>${spring-cloud.version}</version>
  904. <exclusions>
  905. <!-- already in java -->
  906. <exclusion>
  907. <groupId>stax</groupId>
  908. <artifactId>stax-api</artifactId>
  909. </exclusion>
  910. <exclusion>
  911. <groupId>javax.xml.stream</groupId>
  912. <artifactId>stax-api</artifactId>
  913. </exclusion>
  914. <!-- duplicated with spring-security-core -->
  915. <exclusion>
  916. <groupId>org.springframework.security</groupId>
  917. <artifactId>spring-security-crypto</artifactId>
  918. </exclusion>
  919. <!-- duplicated with xpp3:xpp3_min -->
  920. <exclusion>
  921. <groupId>xmlpull</groupId>
  922. <artifactId>xmlpull</artifactId>
  923. </exclusion>
  924. <!-- duplicated with netty-all -->
  925. <exclusion>
  926. <groupId>io.netty</groupId>
  927. <artifactId>netty-codec-http</artifactId>
  928. </exclusion>
  929. <exclusion>
  930. <groupId>io.netty</groupId>
  931. <artifactId>netty-buffer</artifactId>
  932. </exclusion>
  933. <exclusion>
  934. <groupId>io.netty</groupId>
  935. <artifactId>netty-common</artifactId>
  936. </exclusion>
  937. <exclusion>
  938. <groupId>io.netty</groupId>
  939. <artifactId>netty-transport-native-epoll</artifactId>
  940. </exclusion>
  941. <exclusion>
  942. <groupId>io.netty</groupId>
  943. <artifactId>netty-transport</artifactId>
  944. </exclusion>
  945. <!-- duplicated with commons-collections and commons-beanutils -->
  946. <exclusion>
  947. <groupId>commons-beanutils</groupId>
  948. <artifactId>commons-beanutils-core</artifactId>
  949. </exclusion>
  950. <!-- duplicated with spring-aop -->
  951. <exclusion>
  952. <groupId>aopalliance</groupId>
  953. <artifactId>aopalliance</artifactId>
  954. </exclusion>
  955. </exclusions>
  956. </dependency>
  957. <!-- end of eureka -->
  958. </dependencies>
  959. </dependencyManagement>
  960. <dependencies>
  961. <dependency>
  962. <groupId>com.dianping.cat</groupId>
  963. <artifactId>cat-client</artifactId>
  964. </dependency>
  965. <dependency>
  966. <groupId>com.ctrip.3rdparty.tomcat.embed</groupId>
  967. <artifactId>tomcat-embed-core</artifactId>
  968. </dependency>
  969. <dependency>
  970. <groupId>com.ctrip.framework.clogging</groupId>
  971. <artifactId>clogging-agent</artifactId>
  972. </dependency>
  973. <dependency>
  974. <groupId>com.ctrip.platform</groupId>
  975. <artifactId>ctrip-dal-client</artifactId>
  976. </dependency>
  977. </dependencies>
  978. </profile>
  979. <profile>
  980. <id>release</id>
  981. <build>
  982. <plugins>
  983. <plugin>
  984. <groupId>org.apache.maven.plugins</groupId>
  985. <artifactId>maven-javadoc-plugin</artifactId>
  986. </plugin>
  987. <plugin>
  988. <groupId>org.apache.maven.plugins</groupId>
  989. <artifactId>maven-gpg-plugin</artifactId>
  990. </plugin>
  991. </plugins>
  992. </build>
  993. </profile>
  994. <profile>
  995. <id>configdb</id>
  996. <build>
  997. <plugins>
  998. <plugin>
  999. <groupId>org.flywaydb</groupId>
  1000. <artifactId>flyway-maven-plugin</artifactId>
  1001. <version>5.2.4</version>
  1002. <dependencies>
  1003. <dependency>
  1004. <groupId>mysql</groupId>
  1005. <artifactId>mysql-connector-java</artifactId>
  1006. <version>8.0.16</version>
  1007. </dependency>
  1008. </dependencies>
  1009. <configuration>
  1010. <configFile>scripts/flyway/flyway-configdb.properties</configFile>
  1011. </configuration>
  1012. <inherited>false</inherited>
  1013. </plugin>
  1014. </plugins>
  1015. </build>
  1016. </profile>
  1017. <profile>
  1018. <id>portaldb</id>
  1019. <build>
  1020. <plugins>
  1021. <plugin>
  1022. <groupId>org.flywaydb</groupId>
  1023. <artifactId>flyway-maven-plugin</artifactId>
  1024. <version>5.2.4</version>
  1025. <dependencies>
  1026. <dependency>
  1027. <groupId>mysql</groupId>
  1028. <artifactId>mysql-connector-java</artifactId>
  1029. <version>8.0.16</version>
  1030. </dependency>
  1031. </dependencies>
  1032. <configuration>
  1033. <configFile>scripts/flyway/flyway-portaldb.properties</configFile>
  1034. </configuration>
  1035. <inherited>false</inherited>
  1036. </plugin>
  1037. </plugins>
  1038. </build>
  1039. </profile>
  1040. </profiles>
  1041. <reporting>
  1042. <plugins>
  1043. <plugin>
  1044. <groupId>org.apache.maven.plugins</groupId>
  1045. <artifactId>maven-project-info-reports-plugin</artifactId>
  1046. <version>2.9</version>
  1047. <reportSets>
  1048. <reportSet>
  1049. <reports>
  1050. <report>index</report>
  1051. <report>summary</report>
  1052. <report>dependency-info</report>
  1053. <report>project-team</report>
  1054. <report>scm</report>
  1055. <report>issue-tracking</report>
  1056. <report>mailing-list</report>
  1057. <!-- <report>dependency-management</report> -->
  1058. <!-- <report>dependencies</report> -->
  1059. <!-- <report>dependency-convergence</report> -->
  1060. <report>cim</report>
  1061. <report>plugin-management</report>
  1062. <report>plugins</report>
  1063. <report>distribution-management</report>
  1064. <report>license</report>
  1065. <report>modules</report>
  1066. </reports>
  1067. </reportSet>
  1068. </reportSets>
  1069. </plugin>
  1070. <plugin>
  1071. <groupId>org.apache.maven.plugins</groupId>
  1072. <artifactId>maven-checkstyle-plugin</artifactId>
  1073. <version>2.17</version>
  1074. <configuration>
  1075. <configLocation>google_checks.xml</configLocation>
  1076. <headerLocation>LICENSE-2.0.txt</headerLocation>
  1077. </configuration>
  1078. </plugin>
  1079. <plugin>
  1080. <groupId>org.apache.maven.plugins</groupId>
  1081. <artifactId>maven-pmd-plugin</artifactId>
  1082. <version>3.6</version>
  1083. <configuration>
  1084. <aggregate>true</aggregate>
  1085. </configuration>
  1086. </plugin>
  1087. <plugin>
  1088. <groupId>org.codehaus.mojo</groupId>
  1089. <artifactId>findbugs-maven-plugin</artifactId>
  1090. <version>3.0.3</version>
  1091. </plugin>
  1092. </plugins>
  1093. </reporting>
  1094. <distributionManagement>
  1095. <repository>
  1096. <id>releases</id>
  1097. <url>${releases.repo}</url>
  1098. </repository>
  1099. <snapshotRepository>
  1100. <id>snapshots</id>
  1101. <url>${snapshots.repo}</url>
  1102. </snapshotRepository>
  1103. </distributionManagement>
  1104. </project>