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

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

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