pom.xml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 1999-2018 Alibaba Group Holding Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. -->
  14. <project xmlns="http://maven.apache.org/POM/4.0.0"
  15. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <inceptionYear>2018</inceptionYear>
  19. <groupId>com.alibaba.nacos</groupId>
  20. <artifactId>nacos-all</artifactId>
  21. <version>1.3.0</version>
  22. <packaging>pom</packaging>
  23. <name>Alibaba NACOS ${project.version}</name>
  24. <description>Top Nacos project pom.xml file</description>
  25. <url>http://nacos.io</url>
  26. <prerequisites>
  27. <maven>3.2.5</maven>
  28. </prerequisites>
  29. <scm>
  30. <url>git@github.com:alibaba/nacos.git</url>
  31. <connection>scm:git@github.com:alibaba/nacos.git</connection>
  32. <developerConnection>scm:git@github.com:alibaba/nacos.git</developerConnection>
  33. <tag>nacos-all-1.3.0</tag>
  34. </scm>
  35. <mailingLists>
  36. <mailingList>
  37. <name>Development List</name>
  38. <subscribe>dev-nacos+subscribe@googlegroups.com</subscribe>
  39. <unsubscribe>dev-nacos+unsubscribe@googlegroups.com</unsubscribe>
  40. <post>dev-nacos@googlegroups.com</post>
  41. </mailingList>
  42. <mailingList>
  43. <name>User List</name>
  44. <subscribe>users-nacos+subscribe@googlegroups.com</subscribe>
  45. <unsubscribe>users-nacos+unsubscribe@googlegroups.com</unsubscribe>
  46. <post>users-nacos@googlegroups.com</post>
  47. </mailingList>
  48. <mailingList>
  49. <name>Commits List</name>
  50. <subscribe>commits-nacos+subscribe@googlegroups.com</subscribe>
  51. <unsubscribe>commits-nacos+unsubscribe@googlegroups.com</unsubscribe>
  52. <post>commits-nacos@googlegroups.com</post>
  53. </mailingList>
  54. </mailingLists>
  55. <developers>
  56. <developer>
  57. <id>Alibaba Nacos</id>
  58. <name>Nacos</name>
  59. <url>http://nacos.io</url>
  60. <email>nacos_dev@linux.alibaba.com</email>
  61. </developer>
  62. </developers>
  63. <licenses>
  64. <license>
  65. <name>Apache License, Version 2.0</name>
  66. <url>http://www.apache.org/licenses/LICENSE-2.0</url>
  67. <distribution>repo</distribution>
  68. </license>
  69. </licenses>
  70. <organization>
  71. <name>Alibaba Group</name>
  72. <url>https://github.com/alibaba</url>
  73. </organization>
  74. <issueManagement>
  75. <system>github</system>
  76. <url>https://github.com/alibaba/nacos/issues</url>
  77. </issueManagement>
  78. <properties>
  79. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  80. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  81. <!-- Compiler settings properties -->
  82. <maven.compiler.source>1.8</maven.compiler.source>
  83. <maven.compiler.target>1.8</maven.compiler.target>
  84. <!-- Maven properties -->
  85. <maven.test.skip>false</maven.test.skip>
  86. <maven.javadoc.skip>true</maven.javadoc.skip>
  87. <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
  88. <!-- Exclude all generated code -->
  89. <sonar.jacoco.itReportPath>${project.basedir}/../test/target/jacoco-it.exec</sonar.jacoco.itReportPath>
  90. <sonar.exclusions>file:**/generated-sources/**,**/test/**</sonar.exclusions>
  91. <!-- plugin version -->
  92. <versions-maven-plugin.version>2.2</versions-maven-plugin.version>
  93. <dependency-mediator-maven-plugin.version>1.0.2</dependency-mediator-maven-plugin.version>
  94. <clirr-maven-plugin.version>2.7</clirr-maven-plugin.version>
  95. <maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
  96. <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
  97. <maven-javadoc-plugin.version>2.10.4</maven-javadoc-plugin.version>
  98. <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
  99. <maven-pmd-plugin.version>3.8</maven-pmd-plugin.version>
  100. <apache-rat-plugin.version>0.12</apache-rat-plugin.version>
  101. <maven-resources-plugin.version>3.0.2</maven-resources-plugin.version>
  102. <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
  103. <jacoco-maven-plugin.version>0.7.8</jacoco-maven-plugin.version>
  104. <maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
  105. <findbugs-maven-plugin.version>3.0.4</findbugs-maven-plugin.version>
  106. <sonar-maven-plugin.version>3.0.2</sonar-maven-plugin.version>
  107. <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
  108. <maven-failsafe-plugin.version>2.19.1</maven-failsafe-plugin.version>
  109. <maven-assembly-plugin.version>3.0.0</maven-assembly-plugin.version>
  110. <!-- dependency version related to plugin -->
  111. <extra-enforcer-rules.version>1.0-beta-4</extra-enforcer-rules.version>
  112. <p3c-pmd.version>1.3.0</p3c-pmd.version>
  113. <!-- dependency version -->
  114. <spring-boot-dependencies.version>2.1.1.RELEASE</spring-boot-dependencies.version>
  115. <servlet-api.version>3.0</servlet-api.version>
  116. <commons-lang.version>2.6</commons-lang.version>
  117. <commons-lang3.version>3.4</commons-lang3.version>
  118. <commons-io.version>2.2</commons-io.version>
  119. <commons-collections.version>3.2.2</commons-collections.version>
  120. <commons-logging.version>1.2</commons-logging.version>
  121. <commons-dbcp.version>1.4</commons-dbcp.version>
  122. <commons-cli.version>1.2</commons-cli.version>
  123. <slf4j-api.version>1.7.7</slf4j-api.version>
  124. <logback.version>1.2.3</logback.version>
  125. <log4j.version>2.11.2</log4j.version>
  126. <httpcore.version>4.4.1</httpcore.version>
  127. <httpclient.version>4.5</httpclient.version>
  128. <httpasyncclient.version>4.1.3</httpasyncclient.version>
  129. <async-http-client.version>1.7.17</async-http-client.version>
  130. <mysql-connector-java.version>5.1.34</mysql-connector-java.version>
  131. <derby.version>10.14.2.0</derby.version>
  132. <cglib-nodep.version>2.1</cglib-nodep.version>
  133. <jcip-annotations.version>1.0</jcip-annotations.version>
  134. <jackson-core.version>2.9.10</jackson-core.version>
  135. <jackson-databind.version>2.9.10.4</jackson-databind.version>
  136. <jackson-core-asl.version>1.9.10</jackson-core-asl.version>
  137. <jjwt.version>0.10.5</jjwt.version>
  138. <netty-all.version>4.1.42.Final</netty-all.version>
  139. <netty-common.version>4.1.31.Final</netty-common.version>
  140. <mina-core.version>2.0.0-RC1</mina-core.version>
  141. <guava.version>22.0</guava.version>
  142. <javatuples.version>1.2</javatuples.version>
  143. <commonOkHttp.version>0.4.1</commonOkHttp.version>
  144. <grpc-java.version>1.24.0</grpc-java.version>
  145. <proto-google-common-protos.version>1.17.0</proto-google-common-protos.version>
  146. <protobuf-java.version>3.8.0</protobuf-java.version>
  147. <protoc-gen-grpc-java.version>1.24.0</protoc-gen-grpc-java.version>
  148. <hessian.version>4.0.63</hessian.version>
  149. <reflections.version>0.9.11</reflections.version>
  150. <mockito-all.version>1.10.19</mockito-all.version>
  151. <hamcrest-all.version>1.3</hamcrest-all.version>
  152. <prometheus-simpleclient.version>0.5.0</prometheus-simpleclient.version>
  153. <tomcat-embed-jasper.version>7.0.59</tomcat-embed-jasper.version>
  154. <truth.version>0.30</truth.version>
  155. <HikariCP.version>3.4.2</HikariCP.version>
  156. <jraft-core.version>1.3.2.beta1</jraft-core.version>
  157. <rpc-grpc-impl.version>1.3.2.beta1</rpc-grpc-impl.version>
  158. </properties>
  159. <!-- == -->
  160. <!-- =========================================================Build plugins================================================ -->
  161. <!-- == -->
  162. <build>
  163. <plugins>
  164. <plugin>
  165. <groupId>org.codehaus.mojo</groupId>
  166. <artifactId>versions-maven-plugin</artifactId>
  167. <version>${versions-maven-plugin.version}</version>
  168. </plugin>
  169. <plugin>
  170. <groupId>com.github.vongosling</groupId>
  171. <artifactId>dependency-mediator-maven-plugin</artifactId>
  172. <version>${dependency-mediator-maven-plugin.version}</version>
  173. </plugin>
  174. <plugin>
  175. <groupId>org.codehaus.mojo</groupId>
  176. <artifactId>clirr-maven-plugin</artifactId>
  177. <version>${clirr-maven-plugin.version}</version>
  178. </plugin>
  179. <plugin>
  180. <artifactId>maven-enforcer-plugin</artifactId>
  181. <version>${maven-enforcer-plugin.version}</version>
  182. <executions>
  183. <execution>
  184. <id>enforce-ban-circular-dependencies</id>
  185. <goals>
  186. <goal>enforce</goal>
  187. </goals>
  188. </execution>
  189. </executions>
  190. <configuration>
  191. <rules>
  192. <banCircularDependencies/>
  193. </rules>
  194. <fail>true</fail>
  195. </configuration>
  196. <dependencies>
  197. <dependency>
  198. <groupId>org.codehaus.mojo</groupId>
  199. <artifactId>extra-enforcer-rules</artifactId>
  200. <version>${extra-enforcer-rules.version}</version>
  201. </dependency>
  202. </dependencies>
  203. </plugin>
  204. <plugin>
  205. <artifactId>maven-compiler-plugin</artifactId>
  206. <version>${maven-compiler-plugin.version}</version>
  207. <configuration>
  208. <source>${maven.compiler.source}</source>
  209. <target>${maven.compiler.target}</target>
  210. <compilerVersion>${maven.compiler.source}</compilerVersion>
  211. <showDeprecation>true</showDeprecation>
  212. <showWarnings>true</showWarnings>
  213. </configuration>
  214. </plugin>
  215. <plugin>
  216. <artifactId>maven-javadoc-plugin</artifactId>
  217. <version>${maven-javadoc-plugin.version}</version>
  218. <configuration>
  219. <charset>UTF-8</charset>
  220. </configuration>
  221. <executions>
  222. <execution>
  223. <id>attach-javadocs</id>
  224. <goals>
  225. <goal>jar</goal>
  226. </goals>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <artifactId>maven-source-plugin</artifactId>
  232. <version>${maven-source-plugin.version}</version>
  233. <executions>
  234. <execution>
  235. <id>attach-sources</id>
  236. <goals>
  237. <goal>jar</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. <plugin>
  243. <groupId>org.apache.maven.plugins</groupId>
  244. <artifactId>maven-pmd-plugin</artifactId>
  245. <version>${maven-pmd-plugin.version}</version>
  246. <configuration>
  247. <rulesets>
  248. <ruleset>rulesets/java/ali-comment.xml</ruleset>
  249. <ruleset>rulesets/java/ali-concurrent.xml</ruleset>
  250. <ruleset>rulesets/java/ali-constant.xml</ruleset>
  251. <ruleset>rulesets/java/ali-exception.xml</ruleset>
  252. <ruleset>rulesets/java/ali-flowcontrol.xml</ruleset>
  253. <ruleset>rulesets/java/ali-naming.xml</ruleset>
  254. <ruleset>rulesets/java/ali-oop.xml</ruleset>
  255. <ruleset>rulesets/java/ali-orm.xml</ruleset>
  256. <ruleset>rulesets/java/ali-other.xml</ruleset>
  257. <ruleset>rulesets/java/ali-set.xml</ruleset>
  258. </rulesets>
  259. <printFailingErrors>true</printFailingErrors>
  260. <excludes>
  261. <exclude>**/consistency/entity/*.java</exclude>
  262. <exclude>**/istio/model/mcp/*.java</exclude>
  263. <exclude>**/istio/model/naming/*.java</exclude>
  264. <exclude>**/istio/model/*.java</exclude>
  265. </excludes>
  266. </configuration>
  267. <executions>
  268. <execution>
  269. <goals>
  270. <goal>check</goal>
  271. </goals>
  272. </execution>
  273. </executions>
  274. <dependencies>
  275. <dependency>
  276. <groupId>com.alibaba.p3c</groupId>
  277. <artifactId>p3c-pmd</artifactId>
  278. <version>${p3c-pmd.version}</version>
  279. </dependency>
  280. </dependencies>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.rat</groupId>
  284. <artifactId>apache-rat-plugin</artifactId>
  285. <version>${apache-rat-plugin.version}</version>
  286. <configuration>
  287. <excludes>
  288. <exclude>.editorconfig</exclude>
  289. <exclude>.travis.yml</exclude>
  290. <exclude>CONTRIBUTING.md</exclude>
  291. <exclude>CODE_OF_CONDUCT.md</exclude>
  292. <exclude>CHANGELOG.md</exclude>
  293. <exclude>style/codeStyle.md</exclude>
  294. <exclude>REPORTING-BUGS.md</exclude>
  295. <exclude>README.md</exclude>
  296. <exclude>.github/**/*</exclude>
  297. <exclude>src/main/resources/**</exclude>
  298. <exclude>src/test/**</exclude>
  299. <exclude>bin/*</exclude>
  300. <exclude>conf/*</exclude>
  301. <exclude>doc/*</exclude>
  302. <exclude>derby.log</exclude>
  303. <exclude>logs/*</exclude>
  304. <exclude>**/istio/model/**</exclude>
  305. <exclude>**/consistency/entity/**</exclude>
  306. </excludes>
  307. </configuration>
  308. </plugin>
  309. <plugin>
  310. <artifactId>maven-resources-plugin</artifactId>
  311. <version>${maven-resources-plugin.version}</version>
  312. <configuration>
  313. <!-- We are not suppose to setup the customer resources here -->
  314. <encoding>${project.build.sourceEncoding}</encoding>
  315. </configuration>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.eluder.coveralls</groupId>
  319. <artifactId>coveralls-maven-plugin</artifactId>
  320. <version>${coveralls-maven-plugin.version}</version>
  321. </plugin>
  322. <plugin>
  323. <groupId>org.jacoco</groupId>
  324. <artifactId>jacoco-maven-plugin</artifactId>
  325. <version>${jacoco-maven-plugin.version}</version>
  326. <executions>
  327. <execution>
  328. <id>default-prepare-agent</id>
  329. <goals>
  330. <goal>prepare-agent</goal>
  331. </goals>
  332. <configuration>
  333. <destFile>${project.build.directory}/jacoco.exec</destFile>
  334. </configuration>
  335. </execution>
  336. <execution>
  337. <id>default-prepare-agent-integration</id>
  338. <phase>pre-integration-test</phase>
  339. <goals>
  340. <goal>prepare-agent-integration</goal>
  341. </goals>
  342. <configuration>
  343. <destFile>${project.build.directory}/jacoco-it.exec</destFile>
  344. <propertyName>failsafeArgLine</propertyName>
  345. </configuration>
  346. </execution>
  347. <execution>
  348. <id>default-report</id>
  349. <goals>
  350. <goal>report</goal>
  351. </goals>
  352. </execution>
  353. <execution>
  354. <id>default-report-integration</id>
  355. <goals>
  356. <goal>report-integration</goal>
  357. </goals>
  358. </execution>
  359. </executions>
  360. </plugin>
  361. <plugin>
  362. <artifactId>maven-surefire-plugin</artifactId>
  363. <version>${maven-surefire-plugin.version}</version>
  364. <configuration>
  365. <forkCount>1</forkCount>
  366. <reuseForks>true</reuseForks>
  367. <testFailureIgnore>true</testFailureIgnore>
  368. </configuration>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.codehaus.mojo</groupId>
  372. <artifactId>findbugs-maven-plugin</artifactId>
  373. <version>${findbugs-maven-plugin.version}</version>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.sonarsource.scanner.maven</groupId>
  377. <artifactId>sonar-maven-plugin</artifactId>
  378. <version>${sonar-maven-plugin.version}</version>
  379. </plugin>
  380. <plugin>
  381. <groupId>org.apache.maven.plugins</groupId>
  382. <artifactId>maven-assembly-plugin</artifactId>
  383. <version>${maven-assembly-plugin.version}</version>
  384. </plugin>
  385. </plugins>
  386. </build>
  387. <profiles>
  388. <profile>
  389. <id>jdk8</id>
  390. <activation>
  391. <jdk>[1.8,)</jdk>
  392. </activation>
  393. <!-- Disable doclint under JDK 8 -->
  394. <reporting>
  395. <plugins>
  396. <plugin>
  397. <artifactId>maven-javadoc-plugin</artifactId>
  398. <version>${maven-javadoc-plugin.version}</version>
  399. <configuration>
  400. <additionalparam>-Xdoclint:none</additionalparam>
  401. </configuration>
  402. </plugin>
  403. </plugins>
  404. </reporting>
  405. <build>
  406. <plugins>
  407. <plugin>
  408. <artifactId>maven-javadoc-plugin</artifactId>
  409. <version>${maven-javadoc-plugin.version}</version>
  410. <configuration>
  411. <additionalparam>-Xdoclint:none</additionalparam>
  412. </configuration>
  413. </plugin>
  414. </plugins>
  415. </build>
  416. </profile>
  417. <profile>
  418. <id>release-sign-artifacts</id>
  419. <activation>
  420. <property>
  421. <name>performRelease</name>
  422. <value>true</value>
  423. </property>
  424. </activation>
  425. <properties>
  426. <maven.javadoc.skip>false</maven.javadoc.skip>
  427. </properties>
  428. <build>
  429. <plugins>
  430. <plugin>
  431. <artifactId>maven-gpg-plugin</artifactId>
  432. <version>${maven-gpg-plugin.version}</version>
  433. <executions>
  434. <execution>
  435. <id>sign-artifacts</id>
  436. <phase>verify</phase>
  437. <goals>
  438. <goal>sign</goal>
  439. </goals>
  440. </execution>
  441. </executions>
  442. </plugin>
  443. </plugins>
  444. </build>
  445. </profile>
  446. <profile>
  447. <id>it-test</id>
  448. <build>
  449. <plugins>
  450. <plugin>
  451. <artifactId>maven-failsafe-plugin</artifactId>
  452. <version>${maven-failsafe-plugin.version}</version>
  453. <configuration>
  454. <argLine>@{failsafeArgLine}</argLine>
  455. <argLine>-Dnacos.standalone=true</argLine>
  456. <includes>
  457. <include>**/*ITCase.java</include>
  458. </includes>
  459. </configuration>
  460. <executions>
  461. <execution>
  462. <goals>
  463. <goal>integration-test</goal>
  464. <goal>verify</goal>
  465. </goals>
  466. </execution>
  467. </executions>
  468. </plugin>
  469. </plugins>
  470. </build>
  471. </profile>
  472. <profile>
  473. <id>sonar-apache</id>
  474. <properties>
  475. <!-- URL of the ASF SonarQube server -->
  476. <sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
  477. </properties>
  478. </profile>
  479. </profiles>
  480. <reporting>
  481. <plugins>
  482. <plugin>
  483. <groupId>org.codehaus.mojo</groupId>
  484. <artifactId>findbugs-maven-plugin</artifactId>
  485. <version>${findbugs-maven-plugin.version}</version>
  486. </plugin>
  487. </plugins>
  488. </reporting>
  489. <!-- 子模块管理 -->
  490. <modules>
  491. <module>config</module>
  492. <module>core</module>
  493. <module>naming</module>
  494. <module>address</module>
  495. <module>test</module>
  496. <module>api</module>
  497. <module>client</module>
  498. <module>example</module>
  499. <module>common</module>
  500. <module>distribution</module>
  501. <module>console</module>
  502. <module>cmdb</module>
  503. <module>istio</module>
  504. <module>consistency</module>
  505. </modules>
  506. <!-- 所有的子项目默认依赖 -->
  507. <dependencies>
  508. <dependency>
  509. <groupId>junit</groupId>
  510. <artifactId>junit</artifactId>
  511. <scope>test</scope>
  512. </dependency>
  513. </dependencies>
  514. <!-- 管理依赖版本号,子项目不会默认依赖 -->
  515. <dependencyManagement>
  516. <dependencies>
  517. <dependency>
  518. <!-- Import dependency management from Spring Boot -->
  519. <groupId>org.springframework.boot</groupId>
  520. <artifactId>spring-boot-dependencies</artifactId>
  521. <version>${spring-boot-dependencies.version}</version>
  522. <type>pom</type>
  523. <scope>import</scope>
  524. </dependency>
  525. <!-- Internal libs -->
  526. <dependency>
  527. <groupId>${project.groupId}</groupId>
  528. <artifactId>nacos-config</artifactId>
  529. <version>${project.version}</version>
  530. </dependency>
  531. <dependency>
  532. <groupId>${project.groupId}</groupId>
  533. <artifactId>nacos-core</artifactId>
  534. <version>${project.version}</version>
  535. </dependency>
  536. <dependency>
  537. <groupId>${project.groupId}</groupId>
  538. <artifactId>nacos-naming</artifactId>
  539. <version>${project.version}</version>
  540. </dependency>
  541. <dependency>
  542. <groupId>${project.groupId}</groupId>
  543. <artifactId>nacos-api</artifactId>
  544. <version>${project.version}</version>
  545. </dependency>
  546. <dependency>
  547. <groupId>${project.groupId}</groupId>
  548. <artifactId>nacos-client</artifactId>
  549. <version>${project.version}</version>
  550. </dependency>
  551. <dependency>
  552. <groupId>${project.groupId}</groupId>
  553. <artifactId>nacos-test</artifactId>
  554. <version>${project.version}</version>
  555. </dependency>
  556. <dependency>
  557. <groupId>${project.groupId}</groupId>
  558. <artifactId>nacos-common</artifactId>
  559. <version>${project.version}</version>
  560. </dependency>
  561. <dependency>
  562. <groupId>${project.groupId}</groupId>
  563. <artifactId>nacos-cmdb</artifactId>
  564. <version>${project.version}</version>
  565. </dependency>
  566. <dependency>
  567. <groupId>${project.groupId}</groupId>
  568. <artifactId>nacos-console</artifactId>
  569. <version>${project.version}</version>
  570. </dependency>
  571. <dependency>
  572. <groupId>${project.groupId}</groupId>
  573. <artifactId>nacos-distribution</artifactId>
  574. <version>${project.version}</version>
  575. </dependency>
  576. <dependency>
  577. <groupId>${project.groupId}</groupId>
  578. <artifactId>nacos-example</artifactId>
  579. <version>${project.version}</version>
  580. </dependency>
  581. <dependency>
  582. <groupId>${project.groupId}</groupId>
  583. <artifactId>nacos-address</artifactId>
  584. <version>${project.version}</version>
  585. </dependency>
  586. <dependency>
  587. <groupId>${project.groupId}</groupId>
  588. <artifactId>nacos-istio</artifactId>
  589. <version>${project.version}</version>
  590. </dependency>
  591. <dependency>
  592. <groupId>${project.groupId}</groupId>
  593. <artifactId>nacos-consistency</artifactId>
  594. <version>${project.version}</version>
  595. </dependency>
  596. <dependency>
  597. <groupId>javax.servlet</groupId>
  598. <artifactId>servlet-api</artifactId>
  599. <version>${servlet-api.version}</version>
  600. <scope>provided</scope>
  601. </dependency>
  602. <!-- HikariCP -->
  603. <dependency>
  604. <groupId>com.zaxxer</groupId>
  605. <artifactId>HikariCP</artifactId>
  606. <version>${HikariCP.version}</version>
  607. </dependency>
  608. <!-- hessian -->
  609. <dependency>
  610. <groupId>com.caucho</groupId>
  611. <artifactId>hessian</artifactId>
  612. <version>${hessian.version}</version>
  613. </dependency>
  614. <dependency>
  615. <groupId>commons-lang</groupId>
  616. <artifactId>commons-lang</artifactId>
  617. <version>${commons-lang.version}</version>
  618. </dependency>
  619. <!-- Apache commons -->
  620. <dependency>
  621. <groupId>org.apache.commons</groupId>
  622. <artifactId>commons-lang3</artifactId>
  623. <version>${commons-lang3.version}</version>
  624. </dependency>
  625. <dependency>
  626. <groupId>commons-io</groupId>
  627. <artifactId>commons-io</artifactId>
  628. <version>${commons-io.version}</version>
  629. </dependency>
  630. <dependency>
  631. <groupId>commons-collections</groupId>
  632. <artifactId>commons-collections</artifactId>
  633. <version>${commons-collections.version}</version>
  634. </dependency>
  635. <dependency>
  636. <groupId>commons-logging</groupId>
  637. <artifactId>commons-logging</artifactId>
  638. <version>${commons-logging.version}</version>
  639. </dependency>
  640. <dependency>
  641. <groupId>commons-dbcp</groupId>
  642. <artifactId>commons-dbcp</artifactId>
  643. <version>${commons-dbcp.version}</version>
  644. </dependency>
  645. <dependency>
  646. <groupId>commons-cli</groupId>
  647. <artifactId>commons-cli</artifactId>
  648. <version>${commons-cli.version}</version>
  649. </dependency>
  650. <!-- Logging libs -->
  651. <dependency>
  652. <groupId>org.slf4j</groupId>
  653. <artifactId>slf4j-api</artifactId>
  654. <version>${slf4j-api.version}</version>
  655. </dependency>
  656. <dependency>
  657. <groupId>ch.qos.logback</groupId>
  658. <artifactId>logback-classic</artifactId>
  659. <version>${logback.version}</version>
  660. </dependency>
  661. <dependency>
  662. <groupId>ch.qos.logback</groupId>
  663. <artifactId>logback-core</artifactId>
  664. <version>${logback.version}</version>
  665. </dependency>
  666. <dependency>
  667. <groupId>org.apache.logging.log4j</groupId>
  668. <artifactId>log4j-core</artifactId>
  669. <version>${log4j.version}</version>
  670. </dependency>
  671. <dependency>
  672. <groupId>org.apache.logging.log4j</groupId>
  673. <artifactId>log4j-slf4j-impl</artifactId>
  674. <version>${log4j.version}</version>
  675. </dependency>
  676. <!-- HTTP client libs -->
  677. <dependency>
  678. <groupId>org.apache.httpcomponents</groupId>
  679. <artifactId>httpcore</artifactId>
  680. <version>${httpcore.version}</version>
  681. </dependency>
  682. <dependency>
  683. <groupId>org.apache.httpcomponents</groupId>
  684. <artifactId>httpclient</artifactId>
  685. <version>${httpclient.version}</version>
  686. <exclusions>
  687. <exclusion>
  688. <artifactId>commons-logging</artifactId>
  689. <groupId>commons-logging</groupId>
  690. </exclusion>
  691. </exclusions>
  692. </dependency>
  693. <dependency>
  694. <groupId>org.apache.httpcomponents</groupId>
  695. <artifactId>httpasyncclient</artifactId>
  696. <version>${httpasyncclient.version}</version>
  697. </dependency>
  698. <dependency>
  699. <groupId>com.ning</groupId>
  700. <artifactId>async-http-client</artifactId>
  701. <version>${async-http-client.version}</version>
  702. </dependency>
  703. <!-- JDBC libs -->
  704. <dependency>
  705. <groupId>mysql</groupId>
  706. <artifactId>mysql-connector-java</artifactId>
  707. <version>${mysql-connector-java.version}</version>
  708. </dependency>
  709. <dependency>
  710. <groupId>org.apache.derby</groupId>
  711. <artifactId>derby</artifactId>
  712. <version>${derby.version}</version>
  713. </dependency>
  714. <!-- JRaft -->
  715. <dependency>
  716. <groupId>com.alipay.sofa</groupId>
  717. <artifactId>jraft-core</artifactId>
  718. <version>${jraft-core.version}</version>
  719. <exclusions>
  720. <exclusion>
  721. <groupId>com.alipay.sofa</groupId>
  722. <artifactId>bolt</artifactId>
  723. </exclusion>
  724. <exclusion>
  725. <groupId>org.apache.logging.log4j</groupId>
  726. <artifactId>log4j-api</artifactId>
  727. </exclusion>
  728. <exclusion>
  729. <groupId>org.apache.logging.log4j</groupId>
  730. <artifactId>log4j-core</artifactId>
  731. </exclusion>
  732. <exclusion>
  733. <groupId>org.apache.logging.log4j</groupId>
  734. <artifactId>log4j-slf4j-impl</artifactId>
  735. </exclusion>
  736. <exclusion>
  737. <groupId>org.apache.logging.log4j</groupId>
  738. <artifactId>log4j-jcl</artifactId>
  739. </exclusion>
  740. </exclusions>
  741. </dependency>
  742. <dependency>
  743. <groupId>com.alipay.sofa</groupId>
  744. <artifactId>rpc-grpc-impl</artifactId>
  745. <version>${rpc-grpc-impl.version}</version>
  746. </dependency>
  747. <!-- Third-party libs -->
  748. <dependency>
  749. <groupId>cglib</groupId>
  750. <artifactId>cglib-nodep</artifactId>
  751. <version>${cglib-nodep.version}</version>
  752. </dependency>
  753. <dependency>
  754. <groupId>net.jcip</groupId>
  755. <artifactId>jcip-annotations</artifactId>
  756. <version>${jcip-annotations.version}</version>
  757. </dependency>
  758. <dependency>
  759. <groupId>com.fasterxml.jackson.core</groupId>
  760. <artifactId>jackson-core</artifactId>
  761. <version>${jackson-core.version}</version>
  762. </dependency>
  763. <dependency>
  764. <groupId>com.fasterxml.jackson.core</groupId>
  765. <artifactId>jackson-databind</artifactId>
  766. <version>${jackson-databind.version}</version>
  767. </dependency>
  768. <dependency>
  769. <groupId>org.codehaus.jackson</groupId>
  770. <artifactId>jackson-core-asl</artifactId>
  771. <version>${jackson-core-asl.version}</version>
  772. </dependency>
  773. <dependency>
  774. <groupId>io.jsonwebtoken</groupId>
  775. <artifactId>jjwt-api</artifactId>
  776. <version>${jjwt.version}</version>
  777. </dependency>
  778. <dependency>
  779. <groupId>io.jsonwebtoken</groupId>
  780. <artifactId>jjwt-impl</artifactId>
  781. <version>${jjwt.version}</version>
  782. <scope>runtime</scope>
  783. </dependency>
  784. <dependency>
  785. <groupId>io.jsonwebtoken</groupId>
  786. <artifactId>jjwt-jackson</artifactId>
  787. <version>${jjwt.version}</version>
  788. <scope>runtime</scope>
  789. </dependency>
  790. <dependency>
  791. <groupId>io.netty</groupId>
  792. <artifactId>netty-all</artifactId>
  793. <version>${netty-all.version}</version>
  794. </dependency>
  795. <dependency>
  796. <groupId>io.netty</groupId>
  797. <artifactId>netty-common</artifactId>
  798. <version>${netty-common.version}</version>
  799. </dependency>
  800. <dependency>
  801. <groupId>org.apache.mina</groupId>
  802. <artifactId>mina-core</artifactId>
  803. <version>${mina-core.version}</version>
  804. </dependency>
  805. <dependency>
  806. <groupId>com.google.guava</groupId>
  807. <artifactId>guava</artifactId>
  808. <version>${guava.version}</version>
  809. </dependency>
  810. <dependency>
  811. <groupId>org.javatuples</groupId>
  812. <artifactId>javatuples</artifactId>
  813. <version>${javatuples.version}</version>
  814. </dependency>
  815. <dependency>
  816. <groupId>com.github.keran213539</groupId>
  817. <artifactId>commonOkHttp</artifactId>
  818. <version>${commonOkHttp.version}</version>
  819. <scope>test</scope>
  820. </dependency>
  821. <!-- gRPC dependency start -->
  822. <dependency>
  823. <groupId>io.grpc</groupId>
  824. <artifactId>grpc-netty-shaded</artifactId>
  825. <version>${grpc-java.version}</version>
  826. </dependency>
  827. <dependency>
  828. <groupId>io.grpc</groupId>
  829. <artifactId>grpc-protobuf</artifactId>
  830. <version>${grpc-java.version}</version>
  831. </dependency>
  832. <dependency>
  833. <groupId>io.grpc</groupId>
  834. <artifactId>grpc-stub</artifactId>
  835. <version>${grpc-java.version}</version>
  836. </dependency>
  837. <dependency>
  838. <groupId>io.grpc</groupId>
  839. <artifactId>protoc-gen-grpc-java</artifactId>
  840. <version>${grpc-java.version}</version>
  841. <type>pom</type>
  842. </dependency>
  843. <dependency>
  844. <groupId>com.google.api.grpc</groupId>
  845. <artifactId>proto-google-common-protos</artifactId>
  846. <version>${proto-google-common-protos.version}</version>
  847. </dependency>
  848. <!-- gRPC dependency end -->
  849. <dependency>
  850. <groupId>com.google.protobuf</groupId>
  851. <artifactId>protobuf-java</artifactId>
  852. <version>${protobuf-java.version}</version>
  853. </dependency>
  854. <dependency>
  855. <groupId>org.reflections</groupId>
  856. <artifactId>reflections</artifactId>
  857. <version>${reflections.version}</version>
  858. </dependency>
  859. <dependency>
  860. <groupId>org.mockito</groupId>
  861. <artifactId>mockito-all</artifactId>
  862. <version>${mockito-all.version}</version>
  863. </dependency>
  864. <dependency>
  865. <groupId>org.hamcrest</groupId>
  866. <artifactId>hamcrest-all</artifactId>
  867. <version>${hamcrest-all.version}</version>
  868. </dependency>
  869. <dependency>
  870. <groupId>io.prometheus</groupId>
  871. <artifactId>simpleclient</artifactId>
  872. <version>${prometheus-simpleclient.version}</version>
  873. </dependency>
  874. <dependency>
  875. <groupId>org.apache.tomcat.embed</groupId>
  876. <artifactId>tomcat-embed-jasper</artifactId>
  877. <version>${tomcat-embed-jasper.version}</version>
  878. </dependency>
  879. <dependency>
  880. <groupId>com.google.truth</groupId>
  881. <artifactId>truth</artifactId>
  882. <version>${truth.version}</version>
  883. </dependency>
  884. </dependencies>
  885. </dependencyManagement>
  886. <distributionManagement>
  887. <snapshotRepository>
  888. <!-- 这里的ID一定要在maven setting文件中存在于server下的ID -->
  889. <id>sona</id>
  890. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  891. </snapshotRepository>
  892. <repository>
  893. <id>sona</id>
  894. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  895. </repository>
  896. </distributionManagement>
  897. </project>