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

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

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