1
0

pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright 2024 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.4.0-SNAPSHOT</revision>
  57. <java.version>1.8</java.version>
  58. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  59. <apollo-java.version>2.4.0-SNAPSHOT</apollo-java.version>
  60. <spring-boot.version>2.7.11</spring-boot.version>
  61. <spring-cloud.version>2021.0.5</spring-cloud.version>
  62. <!-- sort by alphabet -->
  63. <awaitility.version>4.2.0</awaitility.version>
  64. <common-lang3.version>3.12.0</common-lang3.version>
  65. <gson.version>2.10.1</gson.version>
  66. <guava.version>32.0.0-jre</guava.version>
  67. <javassist.version>3.23.1-GA</javassist.version>
  68. <javax.activation.version>1.1.1</javax.activation.version>
  69. <javax.mail.version>1.6.2</javax.mail.version>
  70. <jaxb.version>2.3.1</jaxb.version>
  71. <junit.version>5.9.2</junit.version>
  72. <nacos-discovery-api.version>1.4.0</nacos-discovery-api.version>
  73. <!-- database driver -->
  74. <mysql-connector-j.version>8.2.0</mysql-connector-j.version>
  75. <postgre.version>42.7.2</postgre.version>
  76. <!-- Plugins Version sort by alphabet -->
  77. <maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
  78. <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
  79. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  80. <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
  81. <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
  82. <maven-jacoco-plugin.version>0.8.8</maven-jacoco-plugin.version>
  83. <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
  84. <maven-javadoc-plugin.version>3.4.0</maven-javadoc-plugin.version>
  85. <maven-war-plugin.version>3.3.2</maven-war-plugin.version>
  86. <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
  87. <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
  88. </properties>
  89. <modules>
  90. <module>apollo-build-sql-converter</module>
  91. <module>apollo-buildtools</module>
  92. <module>apollo-common</module>
  93. <module>apollo-biz</module>
  94. <module>apollo-configservice</module>
  95. <module>apollo-adminservice</module>
  96. <module>apollo-portal</module>
  97. <module>apollo-assembly</module>
  98. <module>apollo-audit</module>
  99. </modules>
  100. <dependencyManagement>
  101. <dependencies>
  102. <dependency>
  103. <groupId>com.ctrip.framework.apollo</groupId>
  104. <artifactId>apollo-core</artifactId>
  105. <version>${apollo-java.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.ctrip.framework.apollo</groupId>
  109. <artifactId>apollo-common</artifactId>
  110. <version>${project.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.ctrip.framework.apollo</groupId>
  114. <artifactId>apollo-biz</artifactId>
  115. <version>${project.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.ctrip.framework.apollo</groupId>
  119. <artifactId>apollo-buildtools</artifactId>
  120. <version>${project.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.ctrip.framework.apollo</groupId>
  124. <artifactId>apollo-configservice</artifactId>
  125. <version>${project.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.ctrip.framework.apollo</groupId>
  129. <artifactId>apollo-adminservice</artifactId>
  130. <version>${project.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.ctrip.framework.apollo</groupId>
  134. <artifactId>apollo-portal</artifactId>
  135. <version>${project.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.ctrip.framework.apollo</groupId>
  139. <artifactId>apollo-openapi</artifactId>
  140. <version>${apollo-java.version}</version>
  141. </dependency>
  142. <!--audit log module -->
  143. <dependency>
  144. <groupId>com.ctrip.framework.apollo</groupId>
  145. <artifactId>apollo-audit-annotation</artifactId>
  146. <version>${project.version}</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.ctrip.framework.apollo</groupId>
  150. <artifactId>apollo-audit-impl</artifactId>
  151. <version>${project.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>com.ctrip.framework.apollo</groupId>
  155. <artifactId>apollo-audit-api</artifactId>
  156. <version>${project.version}</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.ctrip.framework.apollo</groupId>
  160. <artifactId>apollo-audit-spring-boot-starter</artifactId>
  161. <version>${project.version}</version>
  162. </dependency>
  163. <!--third party -->
  164. <dependency>
  165. <groupId>com.google.guava</groupId>
  166. <artifactId>guava</artifactId>
  167. <version>${guava.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>com.google.code.gson</groupId>
  171. <artifactId>gson</artifactId>
  172. <version>${gson.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>com.mysql</groupId>
  176. <artifactId>mysql-connector-j</artifactId>
  177. <version>${mysql-connector-j.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.postgresql</groupId>
  181. <artifactId>postgresql</artifactId>
  182. <version>${postgre.version}</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>com.google.inject</groupId>
  186. <artifactId>guice</artifactId>
  187. <version>5.0.1</version>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.commons</groupId>
  191. <artifactId>commons-lang3</artifactId>
  192. <version>${common-lang3.version}</version>
  193. </dependency>
  194. <!-- to fix CVE-2024-47072 -->
  195. <dependency>
  196. <groupId>com.thoughtworks.xstream</groupId>
  197. <artifactId>xstream</artifactId>
  198. <version>1.4.21</version>
  199. </dependency>
  200. <!--for test -->
  201. <dependency>
  202. <groupId>org.awaitility</groupId>
  203. <artifactId>awaitility</artifactId>
  204. <version>${awaitility.version}</version>
  205. <scope>test</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.junit.vintage</groupId>
  209. <artifactId>junit-vintage-engine</artifactId>
  210. <version>${junit.version}</version>
  211. <scope>test</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>com.github.stefanbirkner</groupId>
  215. <artifactId>system-lambda</artifactId>
  216. <version>1.2.0</version>
  217. <scope>test</scope>
  218. </dependency>
  219. <!-- declare Spring BOMs in order -->
  220. <dependency>
  221. <groupId>org.springframework.boot</groupId>
  222. <artifactId>spring-boot-dependencies</artifactId>
  223. <version>${spring-boot.version}</version>
  224. <type>pom</type>
  225. <scope>import</scope>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.springframework.cloud</groupId>
  229. <artifactId>spring-cloud-dependencies</artifactId>
  230. <version>${spring-cloud.version}</version>
  231. <type>pom</type>
  232. <scope>import</scope>
  233. </dependency>
  234. <!-- required by eureka -->
  235. <dependency>
  236. <groupId>com.sun.jersey.contribs</groupId>
  237. <artifactId>jersey-apache-client4</artifactId>
  238. <version>1.19.4</version>
  239. </dependency>
  240. <!-- JDK 1.8+ -->
  241. <dependency>
  242. <groupId>javax.xml.bind</groupId>
  243. <artifactId>jaxb-api</artifactId>
  244. <version>${jaxb.version}</version>
  245. </dependency>
  246. <dependency>
  247. <groupId>com.sun.xml.bind</groupId>
  248. <artifactId>jaxb-impl</artifactId>
  249. <version>${jaxb.version}</version>
  250. </dependency>
  251. <dependency>
  252. <groupId>org.glassfish.jaxb</groupId>
  253. <artifactId>jaxb-runtime</artifactId>
  254. <version>${jaxb.version}</version>
  255. </dependency>
  256. <dependency>
  257. <groupId>javax.activation</groupId>
  258. <artifactId>activation</artifactId>
  259. <version>${javax.activation.version}</version>
  260. </dependency>
  261. <dependency>
  262. <groupId>com.sun.mail</groupId>
  263. <artifactId>javax.mail</artifactId>
  264. <version>${javax.mail.version}</version>
  265. </dependency>
  266. <!-- JDK 11+ -->
  267. <dependency>
  268. <groupId>org.javassist</groupId>
  269. <artifactId>javassist</artifactId>
  270. <version>${javassist.version}</version>
  271. </dependency>
  272. <!-- end of JDK 11+ -->
  273. </dependencies>
  274. </dependencyManagement>
  275. <dependencies>
  276. <dependency>
  277. <groupId>org.springframework.boot</groupId>
  278. <artifactId>spring-boot-starter-test</artifactId>
  279. <scope>test</scope>
  280. <exclusions>
  281. <exclusion>
  282. <artifactId>spring-boot-starter</artifactId>
  283. <groupId>org.springframework.boot</groupId>
  284. </exclusion>
  285. </exclusions>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.awaitility</groupId>
  289. <artifactId>awaitility</artifactId>
  290. <scope>test</scope>
  291. </dependency>
  292. <!-- for junit 4 -->
  293. <dependency>
  294. <groupId>org.junit.vintage</groupId>
  295. <artifactId>junit-vintage-engine</artifactId>
  296. <scope>test</scope>
  297. <exclusions>
  298. <exclusion>
  299. <groupId>org.hamcrest</groupId>
  300. <artifactId>hamcrest-core</artifactId>
  301. </exclusion>
  302. </exclusions>
  303. </dependency>
  304. </dependencies>
  305. <build>
  306. <pluginManagement>
  307. <plugins>
  308. <plugin>
  309. <groupId>org.apache.maven.plugins</groupId>
  310. <artifactId>maven-compiler-plugin</artifactId>
  311. <version>${maven-compiler-plugin.version}</version>
  312. <configuration>
  313. <source>${java.version}</source>
  314. <target>${java.version}</target>
  315. <encoding>${project.build.sourceEncoding}</encoding>
  316. </configuration>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.apache.maven.plugins</groupId>
  320. <artifactId>maven-surefire-plugin</artifactId>
  321. <version>${maven-surefire-plugin.version}</version>
  322. </plugin>
  323. <plugin>
  324. <groupId>org.apache.maven.plugins</groupId>
  325. <artifactId>maven-source-plugin</artifactId>
  326. <version>${maven-source-plugin.version}</version>
  327. <executions>
  328. <execution>
  329. <id>attach-sources</id>
  330. <goals>
  331. <goal>jar-no-fork</goal>
  332. </goals>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. <plugin>
  337. <groupId>org.apache.maven.plugins</groupId>
  338. <artifactId>maven-jar-plugin</artifactId>
  339. <version>${maven-jar-plugin.version}</version>
  340. </plugin>
  341. <plugin>
  342. <artifactId>maven-javadoc-plugin</artifactId>
  343. <version>${maven-javadoc-plugin.version}</version>
  344. <executions>
  345. <execution>
  346. <id>attach-javadoc</id>
  347. <goals>
  348. <goal>jar</goal>
  349. </goals>
  350. <configuration>
  351. <doclint>none</doclint>
  352. </configuration>
  353. </execution>
  354. </executions>
  355. <configuration>
  356. <show>public</show>
  357. <charset>UTF-8</charset>
  358. <encoding>UTF-8</encoding>
  359. <docencoding>UTF-8</docencoding>
  360. <links>
  361. <link>http://docs.oracle.com/javase/7/docs/api</link>
  362. </links>
  363. </configuration>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.apache.maven.plugins</groupId>
  367. <artifactId>maven-war-plugin</artifactId>
  368. <version>${maven-war-plugin.version}</version>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.apache.maven.plugins</groupId>
  372. <artifactId>maven-install-plugin</artifactId>
  373. <version>${maven-install-plugin.version}</version>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-deploy-plugin</artifactId>
  378. <version>${maven-deploy-plugin.version}</version>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-gpg-plugin</artifactId>
  383. <version>${maven-gpg-plugin.version}</version>
  384. <configuration>
  385. <!-- Prevent gpg from using pinentry programs -->
  386. <gpgArguments>
  387. <arg>--pinentry-mode</arg>
  388. <arg>loopback</arg>
  389. </gpgArguments>
  390. </configuration>
  391. <executions>
  392. <execution>
  393. <phase>verify</phase>
  394. <goals>
  395. <goal>sign</goal>
  396. </goals>
  397. </execution>
  398. </executions>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.springframework.boot</groupId>
  402. <artifactId>spring-boot-maven-plugin</artifactId>
  403. <version>${spring-boot.version}</version>
  404. <configuration>
  405. <executable>true</executable>
  406. <attach>false</attach>
  407. </configuration>
  408. <executions>
  409. <execution>
  410. <goals>
  411. <goal>repackage</goal>
  412. </goals>
  413. </execution>
  414. </executions>
  415. </plugin>
  416. <plugin>
  417. <groupId>org.codehaus.mojo</groupId>
  418. <artifactId>findbugs-maven-plugin</artifactId>
  419. <version>3.0.3</version>
  420. <configuration>
  421. <xmlOutput>true</xmlOutput>
  422. <effort>Max</effort>
  423. <threshold>Low</threshold>
  424. <failOnError>false</failOnError>
  425. </configuration>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.codehaus.mojo</groupId>
  429. <artifactId>cobertura-maven-plugin</artifactId>
  430. <version>2.7</version>
  431. <dependencies>
  432. <dependency>
  433. <groupId>ch.qos.logback</groupId>
  434. <artifactId>logback-classic</artifactId>
  435. <version>1.3.12</version>
  436. </dependency>
  437. </dependencies>
  438. </plugin>
  439. <plugin>
  440. <groupId>org.apache.maven.plugins</groupId>
  441. <artifactId>maven-assembly-plugin</artifactId>
  442. <version>${maven-assembly-plugin.version}</version>
  443. </plugin>
  444. <plugin>
  445. <groupId>org.codehaus.mojo</groupId>
  446. <artifactId>versions-maven-plugin</artifactId>
  447. <version>2.2</version>
  448. </plugin>
  449. <plugin>
  450. <groupId>pl.project13.maven</groupId>
  451. <artifactId>git-commit-id-plugin</artifactId>
  452. <version>2.2.6</version>
  453. <executions>
  454. <execution>
  455. <goals>
  456. <goal>revision</goal>
  457. </goals>
  458. </execution>
  459. </executions>
  460. <configuration>
  461. <verbose>true</verbose>
  462. <dateFormat>yyyy-MM-dd'T'HH:mm:ssZ</dateFormat>
  463. <generateGitPropertiesFile>true</generateGitPropertiesFile>
  464. <generateGitPropertiesFilename>${project.build.outputDirectory}/apollo-git.properties</generateGitPropertiesFilename>
  465. <failOnNoGitDirectory>false</failOnNoGitDirectory>
  466. </configuration>
  467. </plugin>
  468. <plugin>
  469. <groupId>org.codehaus.mojo</groupId>
  470. <artifactId>flatten-maven-plugin</artifactId>
  471. <version>1.1.0</version>
  472. <configuration>
  473. <updatePomFile>true</updatePomFile>
  474. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  475. </configuration>
  476. <executions>
  477. <execution>
  478. <id>flatten</id>
  479. <phase>process-resources</phase>
  480. <goals>
  481. <goal>flatten</goal>
  482. </goals>
  483. </execution>
  484. <execution>
  485. <id>flatten.clean</id>
  486. <phase>clean</phase>
  487. <goals>
  488. <goal>clean</goal>
  489. </goals>
  490. </execution>
  491. </executions>
  492. </plugin>
  493. <!-- Need to set releases.repo and snapshots.repo properties in your .m2/settings.xml -->
  494. </plugins>
  495. </pluginManagement>
  496. <plugins>
  497. <plugin>
  498. <groupId>org.apache.maven.plugins</groupId>
  499. <artifactId>maven-compiler-plugin</artifactId>
  500. </plugin>
  501. <plugin>
  502. <groupId>org.apache.maven.plugins</groupId>
  503. <artifactId>maven-surefire-plugin</artifactId>
  504. <configuration>
  505. <trimStackTrace>false</trimStackTrace>
  506. </configuration>
  507. </plugin>
  508. <plugin>
  509. <groupId>org.apache.maven.plugins</groupId>
  510. <artifactId>maven-source-plugin</artifactId>
  511. </plugin>
  512. <plugin>
  513. <groupId>org.apache.maven.plugins</groupId>
  514. <artifactId>maven-war-plugin</artifactId>
  515. </plugin>
  516. <plugin>
  517. <groupId>org.apache.maven.plugins</groupId>
  518. <artifactId>maven-install-plugin</artifactId>
  519. </plugin>
  520. <plugin>
  521. <groupId>org.apache.maven.plugins</groupId>
  522. <artifactId>maven-deploy-plugin</artifactId>
  523. </plugin>
  524. <plugin>
  525. <groupId>org.codehaus.mojo</groupId>
  526. <artifactId>findbugs-maven-plugin</artifactId>
  527. </plugin>
  528. <plugin>
  529. <groupId>org.codehaus.mojo</groupId>
  530. <artifactId>versions-maven-plugin</artifactId>
  531. </plugin>
  532. <plugin>
  533. <groupId>org.apache.maven.plugins</groupId>
  534. <artifactId>maven-jar-plugin</artifactId>
  535. <configuration>
  536. <archive>
  537. <manifest>
  538. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  539. <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
  540. </manifest>
  541. </archive>
  542. </configuration>
  543. </plugin>
  544. <plugin>
  545. <groupId>pl.project13.maven</groupId>
  546. <artifactId>git-commit-id-plugin</artifactId>
  547. </plugin>
  548. <plugin>
  549. <groupId>org.codehaus.mojo</groupId>
  550. <artifactId>flatten-maven-plugin</artifactId>
  551. </plugin>
  552. <plugin>
  553. <groupId>org.jacoco</groupId>
  554. <artifactId>jacoco-maven-plugin</artifactId>
  555. <version>${maven-jacoco-plugin.version}</version>
  556. <executions>
  557. <execution>
  558. <id>prepare-agent</id>
  559. <goals>
  560. <goal>prepare-agent</goal>
  561. </goals>
  562. </execution>
  563. </executions>
  564. </plugin>
  565. </plugins>
  566. <resources>
  567. <resource>
  568. <directory>src/main/resources</directory>
  569. <filtering>true</filtering>
  570. <includes>
  571. <include>**/*.yml</include>
  572. <include>**/*.yaml</include>
  573. <include>**/*.properties</include>
  574. <include>**/*.xml</include>
  575. </includes>
  576. </resource>
  577. <resource>
  578. <directory>src/main/resources</directory>
  579. <filtering>false</filtering>
  580. <excludes>
  581. <exclude>**/*.yml</exclude>
  582. <exclude>**/*.yaml</exclude>
  583. <exclude>**/*.properties</exclude>
  584. <exclude>**/*.xml</exclude>
  585. </excludes>
  586. </resource>
  587. </resources>
  588. </build>
  589. <profiles>
  590. <profile>
  591. <!-- for open source usage -->
  592. <id>github</id>
  593. <properties>
  594. <package.environment>github</package.environment>
  595. </properties>
  596. <activation>
  597. <activeByDefault>true</activeByDefault>
  598. </activation>
  599. </profile>
  600. <profile>
  601. <id>nacos-discovery</id>
  602. <properties>
  603. <nacos.discovery.version>0.2.12</nacos.discovery.version>
  604. <fastjson.version>1.2.83</fastjson.version>
  605. </properties>
  606. <dependencyManagement>
  607. <dependencies>
  608. <dependency>
  609. <groupId>com.alibaba.boot</groupId>
  610. <artifactId>nacos-discovery-spring-boot-starter</artifactId>
  611. <version>${nacos.discovery.version}</version>
  612. </dependency>
  613. <dependency>
  614. <groupId>com.alibaba</groupId>
  615. <artifactId>fastjson</artifactId>
  616. <version>${fastjson.version}</version>
  617. </dependency>
  618. </dependencies>
  619. </dependencyManagement>
  620. </profile>
  621. </profiles>
  622. <repositories>
  623. <!-- for apollo-core and apollo-openapi snapshot versions -->
  624. <repository>
  625. <id>sonatype-nexus-snapshots</id>
  626. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  627. <releases>
  628. <enabled>false</enabled>
  629. </releases>
  630. <snapshots>
  631. <enabled>true</enabled>
  632. <updatePolicy>always</updatePolicy>
  633. </snapshots>
  634. </repository>
  635. </repositories>
  636. </project>