pom.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2022 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>Configuration Center</description>
  27. <url>https://github.com/apolloconfig/apollo</url>
  28. <licenses>
  29. <license>
  30. <name>Apache License, Version 2.0</name>
  31. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  32. </license>
  33. </licenses>
  34. <scm>
  35. <url>https://github.com/apolloconfig/apollo</url>
  36. <connection>scm:git:git@github.com:apolloconfig/apollo.git</connection>
  37. <developerConnection>scm:git:ssh://git@github.com:apolloconfig/apollo.git</developerConnection>
  38. </scm>
  39. <ciManagement>
  40. <system>GitHub Actions</system>
  41. <url>https://github.com/apolloconfig/apollo/actions</url>
  42. </ciManagement>
  43. <issueManagement>
  44. <system>github</system>
  45. <url>https://github.com/apolloconfig/apollo/issues</url>
  46. </issueManagement>
  47. <developers>
  48. <developer>
  49. <id>apollo</id>
  50. <name>The Apollo Project Contributors</name>
  51. <email>apollo-config@googlegroups.com</email>
  52. <url>https://www.apolloconfig.com/</url>
  53. </developer>
  54. </developers>
  55. <properties>
  56. <revision>2.0.1-SNAPSHOT</revision>
  57. <java.version>1.8</java.version>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <spring-boot.version>2.6.8</spring-boot.version>
  60. <spring-cloud.version>2021.0.2</spring-cloud.version>
  61. <jaxb.version>2.3.1</jaxb.version>
  62. <javax.activation.version>1.1.1</javax.activation.version>
  63. <javax.mail.version>1.6.2</javax.mail.version>
  64. <javassist.version>3.23.1-GA</javassist.version>
  65. <nacos-discovery-api.version>1.4.0</nacos-discovery-api.version>
  66. <common-lang3.version>3.12.0</common-lang3.version>
  67. <mysql-connector-java.version>8.0.28</mysql-connector-java.version>
  68. <!-- Plugins Version -->
  69. <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
  70. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  71. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  72. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  73. <maven-war-plugin.version>3.3.2</maven-war-plugin.version>
  74. <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
  75. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  76. <maven-javadoc-plugin.version>3.4.0</maven-javadoc-plugin.version>
  77. <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
  78. <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
  79. <!-- for travis usage -->
  80. <github.global.server>github</github.global.server>
  81. <github.global.oauth2Token>${env.GITHUB_OAUTH_TOKEN}</github.global.oauth2Token>
  82. </properties>
  83. <modules>
  84. <module>apollo-buildtools</module>
  85. <module>apollo-core</module>
  86. <module>apollo-client</module>
  87. <module>apollo-client-config-data</module>
  88. <module>apollo-common</module>
  89. <module>apollo-biz</module>
  90. <module>apollo-configservice</module>
  91. <module>apollo-adminservice</module>
  92. <module>apollo-portal</module>
  93. <module>apollo-assembly</module>
  94. <module>apollo-demo</module>
  95. <module>apollo-mockserver</module>
  96. <module>apollo-openapi</module>
  97. </modules>
  98. <dependencyManagement>
  99. <dependencies>
  100. <dependency>
  101. <groupId>com.ctrip.framework.apollo</groupId>
  102. <artifactId>apollo-core</artifactId>
  103. <version>${project.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>com.ctrip.framework.apollo</groupId>
  107. <artifactId>apollo-client</artifactId>
  108. <version>${project.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.ctrip.framework.apollo</groupId>
  112. <artifactId>apollo-common</artifactId>
  113. <version>${project.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.ctrip.framework.apollo</groupId>
  117. <artifactId>apollo-biz</artifactId>
  118. <version>${project.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.ctrip.framework.apollo</groupId>
  122. <artifactId>apollo-buildtools</artifactId>
  123. <version>${project.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>com.ctrip.framework.apollo</groupId>
  127. <artifactId>apollo-configservice</artifactId>
  128. <version>${project.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>com.ctrip.framework.apollo</groupId>
  132. <artifactId>apollo-adminservice</artifactId>
  133. <version>${project.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>com.ctrip.framework.apollo</groupId>
  137. <artifactId>apollo-portal</artifactId>
  138. <version>${project.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>com.ctrip.framework.apollo</groupId>
  142. <artifactId>apollo-openapi</artifactId>
  143. <version>${project.version}</version>
  144. </dependency>
  145. <!--third party -->
  146. <dependency>
  147. <groupId>org.slf4j</groupId>
  148. <artifactId>slf4j-api</artifactId>
  149. <version>1.7.21</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>com.google.guava</groupId>
  153. <artifactId>guava</artifactId>
  154. <version>31.0.1-jre</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>com.google.code.gson</groupId>
  158. <artifactId>gson</artifactId>
  159. <version>2.8.0</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>mysql</groupId>
  163. <artifactId>mysql-connector-java</artifactId>
  164. <version>${mysql-connector-java.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.google.inject</groupId>
  168. <artifactId>guice</artifactId>
  169. <version>5.0.1</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.commons</groupId>
  173. <artifactId>commons-lang3</artifactId>
  174. <version>${common-lang3.version}</version>
  175. </dependency>
  176. <!-- to fix CVE-2020-26217 -->
  177. <dependency>
  178. <groupId>com.thoughtworks.xstream</groupId>
  179. <artifactId>xstream</artifactId>
  180. <version>1.4.19</version>
  181. </dependency>
  182. <!--for test -->
  183. <dependency>
  184. <groupId>com.h2database</groupId>
  185. <artifactId>h2</artifactId>
  186. <version>1.4.191</version>
  187. <scope>test</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.awaitility</groupId>
  191. <artifactId>awaitility</artifactId>
  192. <version>4.0.3</version>
  193. <scope>test</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.junit.vintage</groupId>
  197. <artifactId>junit-vintage-engine</artifactId>
  198. <version>5.7.0</version>
  199. <scope>test</scope>
  200. </dependency>
  201. <dependency>
  202. <groupId>com.github.stefanbirkner</groupId>
  203. <artifactId>system-lambda</artifactId>
  204. <version>1.2.0</version>
  205. <scope>test</scope>
  206. </dependency>
  207. <!-- declare Spring BOMs in order -->
  208. <dependency>
  209. <groupId>org.springframework.boot</groupId>
  210. <artifactId>spring-boot-dependencies</artifactId>
  211. <version>${spring-boot.version}</version>
  212. <type>pom</type>
  213. <scope>import</scope>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.springframework.cloud</groupId>
  217. <artifactId>spring-cloud-dependencies</artifactId>
  218. <version>${spring-cloud.version}</version>
  219. <type>pom</type>
  220. <scope>import</scope>
  221. </dependency>
  222. <!-- required by eureka -->
  223. <dependency>
  224. <groupId>com.sun.jersey.contribs</groupId>
  225. <artifactId>jersey-apache-client4</artifactId>
  226. <version>1.19.4</version>
  227. </dependency>
  228. <!-- JDK 1.8+ -->
  229. <dependency>
  230. <groupId>javax.xml.bind</groupId>
  231. <artifactId>jaxb-api</artifactId>
  232. <version>${jaxb.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.sun.xml.bind</groupId>
  236. <artifactId>jaxb-impl</artifactId>
  237. <version>${jaxb.version}</version>
  238. </dependency>
  239. <dependency>
  240. <groupId>org.glassfish.jaxb</groupId>
  241. <artifactId>jaxb-runtime</artifactId>
  242. <version>${jaxb.version}</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>javax.activation</groupId>
  246. <artifactId>activation</artifactId>
  247. <version>${javax.activation.version}</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.sun.mail</groupId>
  251. <artifactId>javax.mail</artifactId>
  252. <version>${javax.mail.version}</version>
  253. </dependency>
  254. <!-- JDK 11+ -->
  255. <dependency>
  256. <groupId>org.javassist</groupId>
  257. <artifactId>javassist</artifactId>
  258. <version>${javassist.version}</version>
  259. </dependency>
  260. <!-- end of JDK 11+ -->
  261. </dependencies>
  262. </dependencyManagement>
  263. <dependencies>
  264. <dependency>
  265. <groupId>org.springframework.boot</groupId>
  266. <artifactId>spring-boot-starter-test</artifactId>
  267. <scope>test</scope>
  268. <exclusions>
  269. <exclusion>
  270. <artifactId>spring-boot-starter</artifactId>
  271. <groupId>org.springframework.boot</groupId>
  272. </exclusion>
  273. </exclusions>
  274. </dependency>
  275. <dependency>
  276. <groupId>org.awaitility</groupId>
  277. <artifactId>awaitility</artifactId>
  278. <scope>test</scope>
  279. </dependency>
  280. <!-- for junit 4 -->
  281. <dependency>
  282. <groupId>org.junit.vintage</groupId>
  283. <artifactId>junit-vintage-engine</artifactId>
  284. <scope>test</scope>
  285. <exclusions>
  286. <exclusion>
  287. <groupId>org.hamcrest</groupId>
  288. <artifactId>hamcrest-core</artifactId>
  289. </exclusion>
  290. </exclusions>
  291. </dependency>
  292. </dependencies>
  293. <build>
  294. <pluginManagement>
  295. <plugins>
  296. <plugin>
  297. <groupId>org.apache.maven.plugins</groupId>
  298. <artifactId>maven-compiler-plugin</artifactId>
  299. <version>${maven-compiler-plugin.version}</version>
  300. <configuration>
  301. <source>${java.version}</source>
  302. <target>${java.version}</target>
  303. <encoding>${project.build.sourceEncoding}</encoding>
  304. </configuration>
  305. </plugin>
  306. <plugin>
  307. <groupId>org.apache.maven.plugins</groupId>
  308. <artifactId>maven-surefire-plugin</artifactId>
  309. <version>${maven-surefire-plugin.version}</version>
  310. </plugin>
  311. <plugin>
  312. <groupId>org.apache.maven.plugins</groupId>
  313. <artifactId>maven-source-plugin</artifactId>
  314. <version>${maven-source-plugin.version}</version>
  315. <executions>
  316. <execution>
  317. <id>attach-sources</id>
  318. <goals>
  319. <goal>jar-no-fork</goal>
  320. </goals>
  321. </execution>
  322. </executions>
  323. </plugin>
  324. <plugin>
  325. <groupId>org.apache.maven.plugins</groupId>
  326. <artifactId>maven-jar-plugin</artifactId>
  327. <version>${maven-jar-plugin.version}</version>
  328. </plugin>
  329. <plugin>
  330. <artifactId>maven-javadoc-plugin</artifactId>
  331. <version>${maven-javadoc-plugin.version}</version>
  332. <executions>
  333. <execution>
  334. <id>attach-javadoc</id>
  335. <goals>
  336. <goal>jar</goal>
  337. </goals>
  338. <configuration>
  339. <doclint>none</doclint>
  340. </configuration>
  341. </execution>
  342. </executions>
  343. <configuration>
  344. <show>public</show>
  345. <charset>UTF-8</charset>
  346. <encoding>UTF-8</encoding>
  347. <docencoding>UTF-8</docencoding>
  348. <links>
  349. <link>http://docs.oracle.com/javase/7/docs/api</link>
  350. </links>
  351. </configuration>
  352. </plugin>
  353. <plugin>
  354. <groupId>org.apache.maven.plugins</groupId>
  355. <artifactId>maven-war-plugin</artifactId>
  356. <version>${maven-war-plugin.version}</version>
  357. </plugin>
  358. <plugin>
  359. <groupId>org.apache.maven.plugins</groupId>
  360. <artifactId>maven-install-plugin</artifactId>
  361. <version>${maven-install-plugin.version}</version>
  362. </plugin>
  363. <plugin>
  364. <groupId>org.apache.maven.plugins</groupId>
  365. <artifactId>maven-deploy-plugin</artifactId>
  366. <version>${maven-deploy-plugin.version}</version>
  367. </plugin>
  368. <plugin>
  369. <groupId>org.apache.maven.plugins</groupId>
  370. <artifactId>maven-gpg-plugin</artifactId>
  371. <version>${maven-gpg-plugin.version}</version>
  372. <configuration>
  373. <!-- Prevent gpg from using pinentry programs -->
  374. <gpgArguments>
  375. <arg>--pinentry-mode</arg>
  376. <arg>loopback</arg>
  377. </gpgArguments>
  378. </configuration>
  379. <executions>
  380. <execution>
  381. <phase>verify</phase>
  382. <goals>
  383. <goal>sign</goal>
  384. </goals>
  385. </execution>
  386. </executions>
  387. </plugin>
  388. <plugin>
  389. <groupId>org.springframework.boot</groupId>
  390. <artifactId>spring-boot-maven-plugin</artifactId>
  391. <version>${spring-boot.version}</version>
  392. <configuration>
  393. <executable>true</executable>
  394. <attach>false</attach>
  395. </configuration>
  396. <executions>
  397. <execution>
  398. <goals>
  399. <goal>repackage</goal>
  400. </goals>
  401. </execution>
  402. </executions>
  403. </plugin>
  404. <plugin>
  405. <groupId>org.codehaus.mojo</groupId>
  406. <artifactId>findbugs-maven-plugin</artifactId>
  407. <version>3.0.3</version>
  408. <configuration>
  409. <xmlOutput>true</xmlOutput>
  410. <effort>Max</effort>
  411. <threshold>Low</threshold>
  412. <failOnError>false</failOnError>
  413. </configuration>
  414. </plugin>
  415. <plugin>
  416. <groupId>org.codehaus.mojo</groupId>
  417. <artifactId>cobertura-maven-plugin</artifactId>
  418. <version>2.7</version>
  419. <dependencies>
  420. <dependency>
  421. <groupId>ch.qos.logback</groupId>
  422. <artifactId>logback-classic</artifactId>
  423. <version>1.2.0</version>
  424. </dependency>
  425. </dependencies>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-assembly-plugin</artifactId>
  430. <version>${maven-assembly-plugin.version}</version>
  431. </plugin>
  432. <plugin>
  433. <groupId>org.codehaus.mojo</groupId>
  434. <artifactId>versions-maven-plugin</artifactId>
  435. <version>2.2</version>
  436. </plugin>
  437. <plugin>
  438. <groupId>pl.project13.maven</groupId>
  439. <artifactId>git-commit-id-plugin</artifactId>
  440. <version>2.2.6</version>
  441. <executions>
  442. <execution>
  443. <goals>
  444. <goal>revision</goal>
  445. </goals>
  446. </execution>
  447. </executions>
  448. <configuration>
  449. <verbose>true</verbose>
  450. <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  451. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  452. <generateGitPropertiesFilename>${project.build.outputDirectory}/apollo-git.properties</generateGitPropertiesFilename>
  453. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  454. </configuration>
  455. </plugin>
  456. <plugin>
  457. <groupId>org.codehaus.mojo</groupId>
  458. <artifactId>flatten-maven-plugin</artifactId>
  459. <version>1.1.0</version>
  460. <configuration>
  461. <updatePomFile>true</updatePomFile>
  462. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  463. </configuration>
  464. <executions>
  465. <execution>
  466. <id>flatten</id>
  467. <phase>process-resources</phase>
  468. <goals>
  469. <goal>flatten</goal>
  470. </goals>
  471. </execution>
  472. <execution>
  473. <id>flatten.clean</id>
  474. <phase>clean</phase>
  475. <goals>
  476. <goal>clean</goal>
  477. </goals>
  478. </execution>
  479. </executions>
  480. </plugin>
  481. <!-- Need to set releases.repo and snapshots.repo properties in your .m2/settings.xml -->
  482. </plugins>
  483. </pluginManagement>
  484. <plugins>
  485. <plugin>
  486. <groupId>org.apache.maven.plugins</groupId>
  487. <artifactId>maven-compiler-plugin</artifactId>
  488. </plugin>
  489. <plugin>
  490. <groupId>org.apache.maven.plugins</groupId>
  491. <artifactId>maven-surefire-plugin</artifactId>
  492. <configuration>
  493. <trimStackTrace>false</trimStackTrace>
  494. </configuration>
  495. </plugin>
  496. <plugin>
  497. <groupId>org.apache.maven.plugins</groupId>
  498. <artifactId>maven-source-plugin</artifactId>
  499. </plugin>
  500. <plugin>
  501. <groupId>org.apache.maven.plugins</groupId>
  502. <artifactId>maven-war-plugin</artifactId>
  503. </plugin>
  504. <plugin>
  505. <groupId>org.apache.maven.plugins</groupId>
  506. <artifactId>maven-install-plugin</artifactId>
  507. </plugin>
  508. <plugin>
  509. <groupId>org.apache.maven.plugins</groupId>
  510. <artifactId>maven-deploy-plugin</artifactId>
  511. </plugin>
  512. <plugin>
  513. <groupId>org.codehaus.mojo</groupId>
  514. <artifactId>findbugs-maven-plugin</artifactId>
  515. </plugin>
  516. <plugin>
  517. <groupId>org.codehaus.mojo</groupId>
  518. <artifactId>versions-maven-plugin</artifactId>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.apache.maven.plugins</groupId>
  522. <artifactId>maven-jar-plugin</artifactId>
  523. <configuration>
  524. <archive>
  525. <manifest>
  526. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  527. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  528. </manifest>
  529. </archive>
  530. </configuration>
  531. </plugin>
  532. <plugin>
  533. <groupId>pl.project13.maven</groupId>
  534. <artifactId>git-commit-id-plugin</artifactId>
  535. </plugin>
  536. <plugin>
  537. <groupId>org.codehaus.mojo</groupId>
  538. <artifactId>flatten-maven-plugin</artifactId>
  539. </plugin>
  540. </plugins>
  541. <resources>
  542. <resource>
  543. <directory>src/main/resources</directory>
  544. <filtering>true</filtering>
  545. <includes>
  546. <include>**/*.yml</include>
  547. <include>**/*.yaml</include>
  548. <include>**/*.properties</include>
  549. <include>**/*.xml</include>
  550. </includes>
  551. </resource>
  552. <resource>
  553. <directory>src/main/resources</directory>
  554. <filtering>false</filtering>
  555. <excludes>
  556. <exclude>**/*.yml</exclude>
  557. <exclude>**/*.yaml</exclude>
  558. <exclude>**/*.properties</exclude>
  559. <exclude>**/*.xml</exclude>
  560. </excludes>
  561. </resource>
  562. <resource>
  563. <directory>src/main/config</directory>
  564. <filtering>true</filtering>
  565. <includes>
  566. <include>application-github.properties</include>
  567. </includes>
  568. </resource>
  569. <resource>
  570. <directory>src/main/config</directory>
  571. <filtering>false</filtering>
  572. <excludes>
  573. <exclude>application-github.properties</exclude>
  574. </excludes>
  575. </resource>
  576. </resources>
  577. </build>
  578. <profiles>
  579. <profile>
  580. <!-- for travis usage -->
  581. <id>travis</id>
  582. <activation>
  583. <property>
  584. <name>env.TRAVIS</name>
  585. <value>true</value>
  586. </property>
  587. </activation>
  588. <build>
  589. <plugins>
  590. <plugin>
  591. <groupId>com.github.github</groupId>
  592. <artifactId>site-maven-plugin</artifactId>
  593. <version>0.12</version>
  594. <configuration>
  595. <message>Site for ${project.artifactId}, ${project.version}</message>
  596. <path>${github.path}</path>
  597. <merge>true</merge>
  598. </configuration>
  599. <executions>
  600. <execution>
  601. <goals>
  602. <goal>site</goal>
  603. </goals>
  604. <phase>site</phase>
  605. </execution>
  606. </executions>
  607. </plugin>
  608. <plugin>
  609. <groupId>org.jacoco</groupId>
  610. <artifactId>jacoco-maven-plugin</artifactId>
  611. <version>0.8.3</version>
  612. <executions>
  613. <execution>
  614. <id>prepare-agent</id>
  615. <goals>
  616. <goal>prepare-agent</goal>
  617. </goals>
  618. </execution>
  619. </executions>
  620. </plugin>
  621. <plugin>
  622. <groupId>org.eluder.coveralls</groupId>
  623. <artifactId>coveralls-maven-plugin</artifactId>
  624. <version>4.2.0</version>
  625. </plugin>
  626. </plugins>
  627. </build>
  628. </profile>
  629. <profile>
  630. <!-- for open source usage -->
  631. <id>github</id>
  632. <properties>
  633. <package.environment>github</package.environment>
  634. </properties>
  635. <activation>
  636. <activeByDefault>true</activeByDefault>
  637. </activation>
  638. </profile>
  639. <profile>
  640. <id>nacos-discovery</id>
  641. <properties>
  642. <nacos.discovery.version>0.2.7</nacos.discovery.version>
  643. <fastjson.version>1.2.75</fastjson.version>
  644. </properties>
  645. <dependencyManagement>
  646. <dependencies>
  647. <dependency>
  648. <groupId>com.alibaba.boot</groupId>
  649. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  650. <version>${nacos.discovery.version}</version>
  651. </dependency>
  652. <dependency>
  653. <groupId>com.alibaba</groupId>
  654. <artifactId>fastjson</artifactId>
  655. <version>${fastjson.version}</version>
  656. </dependency>
  657. </dependencies>
  658. </dependencyManagement>
  659. </profile>
  660. <profile>
  661. <id>release</id>
  662. <build>
  663. <plugins>
  664. <plugin>
  665. <groupId>org.apache.maven.plugins</groupId>
  666. <artifactId>maven-javadoc-plugin</artifactId>
  667. </plugin>
  668. <plugin>
  669. <groupId>org.apache.maven.plugins</groupId>
  670. <artifactId>maven-gpg-plugin</artifactId>
  671. </plugin>
  672. </plugins>
  673. </build>
  674. </profile>
  675. <profile>
  676. <id>configdb</id>
  677. <build>
  678. <plugins>
  679. <plugin>
  680. <groupId>org.flywaydb</groupId>
  681. <artifactId>flyway-maven-plugin</artifactId>
  682. <version>8.0.5</version>
  683. <dependencies>
  684. <dependency>
  685. <groupId>mysql</groupId>
  686. <artifactId>mysql-connector-java</artifactId>
  687. <version>${mysql-connector-java.version}</version>
  688. </dependency>
  689. </dependencies>
  690. <configuration>
  691. <configFiles>
  692. <configFile>
  693. scripts/flyway/flyway-configdb.properties
  694. </configFile>
  695. </configFiles>
  696. </configuration>
  697. <inherited>false</inherited>
  698. </plugin>
  699. </plugins>
  700. </build>
  701. </profile>
  702. <profile>
  703. <id>portaldb</id>
  704. <build>
  705. <plugins>
  706. <plugin>
  707. <groupId>org.flywaydb</groupId>
  708. <artifactId>flyway-maven-plugin</artifactId>
  709. <version>8.0.5</version>
  710. <dependencies>
  711. <dependency>
  712. <groupId>mysql</groupId>
  713. <artifactId>mysql-connector-java</artifactId>
  714. <version>${mysql-connector-java.version}</version>
  715. </dependency>
  716. </dependencies>
  717. <configuration>
  718. <configFiles>
  719. <configFile>
  720. scripts/flyway/flyway-portaldb.properties
  721. </configFile>
  722. </configFiles>
  723. </configuration>
  724. <inherited>false</inherited>
  725. </plugin>
  726. </plugins>
  727. </build>
  728. </profile>
  729. </profiles>
  730. <reporting>
  731. <plugins>
  732. <plugin>
  733. <groupId>org.apache.maven.plugins</groupId>
  734. <artifactId>maven-project-info-reports-plugin</artifactId>
  735. <version>2.9</version>
  736. <reportSets>
  737. <reportSet>
  738. <reports>
  739. <report>index</report>
  740. <report>summary</report>
  741. <report>dependency-info</report>
  742. <report>project-team</report>
  743. <report>scm</report>
  744. <report>issue-tracking</report>
  745. <report>mailing-list</report>
  746. <!-- <report>dependency-management</report> -->
  747. <!-- <report>dependencies</report> -->
  748. <!-- <report>dependency-convergence</report> -->
  749. <report>cim</report>
  750. <report>plugin-management</report>
  751. <report>plugins</report>
  752. <report>distribution-management</report>
  753. <report>license</report>
  754. <report>modules</report>
  755. </reports>
  756. </reportSet>
  757. </reportSets>
  758. </plugin>
  759. <plugin>
  760. <groupId>org.apache.maven.plugins</groupId>
  761. <artifactId>maven-checkstyle-plugin</artifactId>
  762. <version>2.17</version>
  763. <configuration>
  764. <configLocation>google_checks.xml</configLocation>
  765. <headerLocation>LICENSE-2.0.txt</headerLocation>
  766. </configuration>
  767. </plugin>
  768. <plugin>
  769. <groupId>org.apache.maven.plugins</groupId>
  770. <artifactId>maven-pmd-plugin</artifactId>
  771. <version>3.6</version>
  772. <configuration>
  773. <aggregate>true</aggregate>
  774. </configuration>
  775. </plugin>
  776. <plugin>
  777. <groupId>org.codehaus.mojo</groupId>
  778. <artifactId>findbugs-maven-plugin</artifactId>
  779. <version>3.0.3</version>
  780. </plugin>
  781. </plugins>
  782. </reporting>
  783. <distributionManagement>
  784. <repository>
  785. <id>releases</id>
  786. <url>${releases.repo}</url>
  787. </repository>
  788. <snapshotRepository>
  789. <id>snapshots</id>
  790. <url>${snapshots.repo}</url>
  791. </snapshotRepository>
  792. </distributionManagement>
  793. </project>