You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 15 kB

5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.0.6.RELEASE</version>
  9. </parent>
  10. <!--<parent> -->
  11. <!--<groupId>org.sonatype.oss</groupId> -->
  12. <!--<artifactId>oss-parent</artifactId> -->
  13. <!--<version>7</version> -->
  14. <!--</parent> -->
  15. <groupId>com.jd.blockchain</groupId>
  16. <artifactId>jdchain-root</artifactId>
  17. <version>1.1.0-SNAPSHOT</version>
  18. <packaging>pom</packaging>
  19. <description>jdchain</description>
  20. <modules>
  21. <module>utils</module>
  22. <module>base</module>
  23. <module>binary-proto</module>
  24. <module>crypto</module>
  25. <module>runtime</module>
  26. <module>ledger</module>
  27. <module>contract</module>
  28. <module>consensus</module>
  29. <module>storage</module>
  30. <module>gateway</module>
  31. <module>peer</module>
  32. <module>manager</module>
  33. <module>sdk</module>
  34. <module>tools</module>
  35. <module>test</module>
  36. <module>deployment</module>
  37. </modules>
  38. <properties>
  39. <my.utils.version>0.8.1-SNAPSHOT</my.utils.version>
  40. <bft-smart.version>0.0.8.RELEASE</bft-smart.version>
  41. <explorer.version>0.7.0.RELEASE</explorer.version>
  42. <ump-explorer.version>1.0.0-SNAPSHOT</ump-explorer.version>
  43. <commons-io.version>2.4</commons-io.version>
  44. <!-- <spring.framework.version>4.3.4.RELEASE</spring.framework.version> -->
  45. <!-- <spring.mongo.version>1.9.3.RELEASE</spring.mongo.version> <spring.dao.version>2.0.8</spring.dao.version>
  46. <spring.security.version>4.2.0.RELEASE</spring.security.version> -->
  47. <mongo.driver.version>3.3.0</mongo.driver.version>
  48. <shiro.version>1.2.2</shiro.version>
  49. <aspectj.version>1.8.8</aspectj.version>
  50. <!-- <asm.version>5.2</asm.version> -->
  51. <procyon.version>0.5.35</procyon.version>
  52. <druid.version>1.0.18</druid.version>
  53. <commons.fileupload.version>1.2.2</commons.fileupload.version>
  54. <mybatis.spring.version>1.2.4</mybatis.spring.version>
  55. <mybatis.version>3.3.0</mybatis.version>
  56. <mysql.connector.version>5.1.37</mysql.connector.version>
  57. <servlet.version>3.1.0</servlet.version>
  58. <jstl.version>1.2</jstl.version>
  59. <log4j.version>2.10.0</log4j.version>
  60. <slf4j.version>1.7.25</slf4j.version>
  61. <junit.version>4.12</junit.version>
  62. <mockito.version>1.10.19</mockito.version>
  63. <httpclient.version>4.5.1</httpclient.version>
  64. <jetty.version>9.4.17.v20190418</jetty.version>
  65. <shiro.version>1.2.3</shiro.version>
  66. <disruptor.version>3.3.6</disruptor.version>
  67. <kryo.version>3.0.1</kryo.version>
  68. <jedis.version>2.9.0</jedis.version>
  69. <rocksdb.version>5.15.10</rocksdb.version>
  70. <zookeeper.version>3.4.6</zookeeper.version>
  71. <javaparser.version>3.5.12</javaparser.version>
  72. <ehcache.version>3.5.3</ehcache.version>
  73. <cache-api.version>1.1.0</cache-api.version>
  74. <commons-io.version>2.4</commons-io.version>
  75. <disruptor.version>3.4.2</disruptor.version>
  76. </properties>
  77. <dependencies>
  78. <dependency>
  79. <groupId>junit</groupId>
  80. <artifactId>junit</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.mockito</groupId>
  85. <artifactId>mockito-core</artifactId>
  86. <scope>test</scope>
  87. </dependency>
  88. </dependencies>
  89. <dependencyManagement>
  90. <dependencies>
  91. <dependency>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-dependencies</artifactId>
  94. <version>2.0.6.RELEASE</version>
  95. <type>pom</type>
  96. <scope>import</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>com.jd.blockchain</groupId>
  100. <artifactId>bft-smart</artifactId>
  101. <version>${bft-smart.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>com.jd.blockchain</groupId>
  105. <artifactId>explorer</artifactId>
  106. <version>${explorer.version}</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.jd.blockchain</groupId>
  110. <artifactId>ump-explorer</artifactId>
  111. <version>${ump-explorer.version}</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>commons-io</groupId>
  115. <artifactId>commons-io</artifactId>
  116. <version>${commons-io.version}</version>
  117. </dependency>
  118. <!-- The test dependency -->
  119. <dependency>
  120. <groupId>junit</groupId>
  121. <artifactId>junit</artifactId>
  122. <version>${junit.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.mockito</groupId>
  126. <artifactId>mockito-core</artifactId>
  127. <version>${mockito.version}</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <!-- The thirdpart dependency -->
  131. <dependency>
  132. <groupId>javax.servlet</groupId>
  133. <artifactId>javax.servlet-api</artifactId>
  134. <version>${servlet.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>javax.servlet</groupId>
  138. <artifactId>jstl</artifactId>
  139. <version>${jstl.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.lmax</groupId>
  143. <artifactId>disruptor</artifactId>
  144. <version>${disruptor.version}</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.bitbucket.mstrobel</groupId>
  148. <artifactId>procyon-core</artifactId>
  149. <version>${procyon.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.bitbucket.mstrobel</groupId>
  153. <artifactId>procyon-expressions</artifactId>
  154. <version>${procyon.version}</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.bitbucket.mstrobel</groupId>
  158. <artifactId>procyon-reflection</artifactId>
  159. <version>${procyon.version}</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.bitbucket.mstrobel</groupId>
  163. <artifactId>procyon-compilertools</artifactId>
  164. <version>${procyon.version}</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.alibaba</groupId>
  168. <artifactId>fastjson</artifactId>
  169. <version>1.2.58</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.github.javaparser</groupId>
  173. <artifactId>javaparser-core</artifactId>
  174. <version>${javaparser.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.slf4j</groupId>
  178. <artifactId>slf4j-api</artifactId>
  179. <version>${slf4j.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.slf4j</groupId>
  183. <artifactId>slf4j-log4j12</artifactId>
  184. <version>${slf4j.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.logging.log4j</groupId>
  188. <artifactId>log4j-api</artifactId>
  189. <version>${log4j.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.logging.log4j</groupId>
  193. <artifactId>log4j-core</artifactId>
  194. <version>${log4j.version}</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.aspectj</groupId>
  198. <artifactId>aspectjrt</artifactId>
  199. <version>${aspectj.version}</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.aspectj</groupId>
  203. <artifactId>aspectjweaver</artifactId>
  204. <version>${aspectj.version}</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.aspectj</groupId>
  208. <artifactId>aspectjtools</artifactId>
  209. <version>${aspectj.version}</version>
  210. </dependency>
  211. <!-- <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId>
  212. <version>${asm.version}</version> </dependency> -->
  213. <dependency>
  214. <groupId>org.apache.httpcomponents</groupId>
  215. <artifactId>httpclient</artifactId>
  216. <version>${httpclient.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.eclipse.jetty</groupId>
  220. <artifactId>jetty-server</artifactId>
  221. <version>${jetty.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.eclipse.jetty</groupId>
  225. <artifactId>jetty-io</artifactId>
  226. <version>${jetty.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.eclipse.jetty</groupId>
  230. <artifactId>jetty-http</artifactId>
  231. <version>${jetty.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>org.eclipse.jetty</groupId>
  235. <artifactId>jetty-util</artifactId>
  236. <version>${jetty.version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.eclipse.jetty</groupId>
  240. <artifactId>jetty-webapp</artifactId>
  241. <version>${jetty.version}</version>
  242. </dependency>
  243. <dependency>
  244. <groupId>org.eclipse.jetty</groupId>
  245. <artifactId>jetty-xml</artifactId>
  246. <version>${jetty.version}</version>
  247. </dependency>
  248. <dependency>
  249. <groupId>org.eclipse.jetty</groupId>
  250. <artifactId>jetty-security</artifactId>
  251. <version>${jetty.version}</version>
  252. </dependency>
  253. <dependency>
  254. <groupId>org.eclipse.jetty</groupId>
  255. <artifactId>jetty-servlet</artifactId>
  256. <version>${jetty.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>redis.clients</groupId>
  260. <artifactId>jedis</artifactId>
  261. <version>${jedis.version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>org.rocksdb</groupId>
  265. <artifactId>rocksdbjni</artifactId>
  266. <version>${rocksdb.version}</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>io.grpc</groupId>
  270. <artifactId>grpc-netty</artifactId>
  271. <version>1.9.0</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>io.grpc</groupId>
  275. <artifactId>grpc-protobuf</artifactId>
  276. <version>1.9.0</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>io.grpc</groupId>
  280. <artifactId>grpc-stub</artifactId>
  281. <version>1.9.0</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.bouncycastle</groupId>
  285. <artifactId>bcprov-jdk15on</artifactId>
  286. <version>1.61</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>io.nats</groupId>
  290. <artifactId>jnats</artifactId>
  291. <version>2.2.0</version>
  292. <exclusions>
  293. <exclusion>
  294. <groupId>net.i2p.crypto</groupId>
  295. <artifactId>eddsa</artifactId>
  296. </exclusion>
  297. </exclusions>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.apache.commons</groupId>
  301. <artifactId>commons-collections4</artifactId>
  302. <version>4.1</version>
  303. </dependency>
  304. <!-- jar包扫描 -->
  305. <dependency>
  306. <groupId>org.reflections</groupId>
  307. <artifactId>reflections</artifactId>
  308. <version>0.9.10</version>
  309. <exclusions>
  310. <exclusion>
  311. <groupId>com.google.guava</groupId>
  312. <artifactId>guava</artifactId>
  313. </exclusion>
  314. </exclusions>
  315. </dependency>
  316. <dependency>
  317. <groupId>com.google.guava</groupId>
  318. <artifactId>guava</artifactId>
  319. <version>19.0</version>
  320. </dependency>
  321. </dependencies>
  322. </dependencyManagement>
  323. <build>
  324. <plugins>
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-compiler-plugin</artifactId>
  328. <configuration>
  329. <source>1.8</source>
  330. <target>1.8</target>
  331. <encoding>UTF-8</encoding>
  332. <optimize>false</optimize>
  333. <debug>true</debug>
  334. <showDeprecation>false</showDeprecation>
  335. <showWarnings>false</showWarnings>
  336. </configuration>
  337. </plugin>
  338. </plugins>
  339. <pluginManagement>
  340. <plugins>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-resources-plugin</artifactId>
  344. <configuration>
  345. <encoding>UTF-8</encoding>
  346. </configuration>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.apache.maven.plugins</groupId>
  350. <artifactId>maven-dependency-plugin</artifactId>
  351. <version>${maven-dependency-plugin.version}</version>
  352. <executions>
  353. <execution>
  354. <id>copy-dependencies</id>
  355. <phase>package</phase>
  356. <goals>
  357. <goal>copy-dependencies</goal>
  358. </goals>
  359. <configuration>
  360. <!--${project.build.directory} class的输出目录不做设置的话默认代表项目根目录的target目录;
  361. 也可以使用“自定义文件夹/自定义文件夹 例如:a/b”,也可以使用绝对路径如:“D:\test” -->
  362. <outputDirectory>${project.build.directory}/libs</outputDirectory>
  363. <excludeTransitive>false</excludeTransitive>
  364. <stripVersion>false</stripVersion>
  365. <includeScope>runtime</includeScope>
  366. </configuration>
  367. </execution>
  368. </executions>
  369. </plugin>
  370. <plugin>
  371. <groupId>org.apache.maven.plugins</groupId>
  372. <artifactId>maven-jar-plugin</artifactId>
  373. <configuration>
  374. <archive>
  375. <manifest>
  376. <addClasspath>true</addClasspath>
  377. <classpathPrefix>lib</classpathPrefix>
  378. <useUniqueVersions>false</useUniqueVersions>
  379. <!-- <mainClass></mainClass> -->
  380. </manifest>
  381. </archive>
  382. </configuration>
  383. </plugin>
  384. <plugin>
  385. <groupId>org.apache.maven.plugins</groupId>
  386. <artifactId>maven-assembly-plugin</artifactId>
  387. <version>2.4.1</version>
  388. <executions>
  389. <execution>
  390. <id>make-assembly</id>
  391. <phase>package</phase>
  392. <goals>
  393. <goal>single</goal>
  394. </goals>
  395. </execution>
  396. </executions>
  397. </plugin>
  398. <plugin>
  399. <groupId>org.apache.maven.plugins</groupId>
  400. <artifactId>maven-war-plugin</artifactId>
  401. <version>2.6</version>
  402. <configuration>
  403. <useCache>false</useCache>
  404. </configuration>
  405. </plugin>
  406. <plugin>
  407. <groupId>org.apache.maven.plugins</groupId>
  408. <artifactId>maven-javadoc-plugin</artifactId>
  409. <version>2.10.4</version>
  410. <executions>
  411. <execution>
  412. <id>attach-javadocs</id>
  413. <phase>package</phase>
  414. <goals>
  415. <goal>jar</goal>
  416. </goals>
  417. <configuration>
  418. <additionalparam>${javadoc.opts}</additionalparam>
  419. </configuration>
  420. </execution>
  421. </executions>
  422. </plugin>
  423. <!--&lt;!&ndash; 生成sources源码包的插件 &ndash;&gt; -->
  424. <!--<plugin> -->
  425. <!--<artifactId>maven-source-plugin</artifactId> -->
  426. <!--<version>2.4</version> -->
  427. <!--<configuration> -->
  428. <!--<attach>true</attach> -->
  429. <!--</configuration> -->
  430. <!--<executions> -->
  431. <!--<execution> -->
  432. <!--<phase>package</phase> -->
  433. <!--<goals> -->
  434. <!--<goal>jar-no-fork</goal> -->
  435. <!--</goals> -->
  436. <!--</execution> -->
  437. <!--</executions> -->
  438. <!--</plugin> -->
  439. </plugins>
  440. </pluginManagement>
  441. <extensions>
  442. <extension>
  443. <groupId>kr.motd.maven</groupId>
  444. <artifactId>os-maven-plugin</artifactId>
  445. <version>1.4.1.Final</version>
  446. </extension>
  447. </extensions>
  448. </build>
  449. <licenses>
  450. <license>
  451. <name>The Apache Software License, Version 2.0</name>
  452. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  453. <distribution>repo</distribution>
  454. </license>
  455. </licenses>
  456. <scm>
  457. <url>https://github.com/blockchain-jd-com/jdchain.git</url>
  458. <connection>https://github.com/blockchain-jd-com/jdchain.git</connection>
  459. <developerConnection>https://github.com/blockchain-jd-com/jdchain.git</developerConnection>
  460. </scm>
  461. <developers>
  462. <developer>
  463. <name>jdchain</name>
  464. <email>git-jdchain@jd.com</email>
  465. <url>https://github.com/blockchain-jd-com/jdchain.git</url>
  466. </developer>
  467. </developers>
  468. <profiles>
  469. <profile>
  470. <id>disable-javadoc-doclint</id>
  471. <activation>
  472. <jdk>[1.8,)</jdk>
  473. </activation>
  474. <properties>
  475. <javadoc.opts>-Xdoclint:none</javadoc.opts>
  476. </properties>
  477. </profile>
  478. </profiles>
  479. </project>

一个面向企业应用场景的通用区块链框架系统,能够作为企业级基础设施,为业务创新提供高效、灵活和安全的解决方案