pom.xml 33 KB

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