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 14 kB

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

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