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

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

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