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

6 years ago
6 years ago
6 years ago
5 years ago
5 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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>com.jd.blockchain</groupId>
  7. <artifactId>deploy-root</artifactId>
  8. <version>1.4.3.RELEASE</version>
  9. </parent>
  10. <artifactId>deploy-peer</artifactId>
  11. <dependencies>
  12. <dependency>
  13. <groupId>com.jd.blockchain</groupId>
  14. <artifactId>peer</artifactId>
  15. <version>${core.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.jd.blockchain</groupId>
  19. <artifactId>runtime-modular</artifactId>
  20. <version>${core.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.jd.blockchain</groupId>
  24. <artifactId>runtime-modular-booter</artifactId>
  25. <version>${core.version}</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.jd.blockchain</groupId>
  29. <artifactId>manager-booter</artifactId>
  30. <version>${core.version}</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.jd.blockchain</groupId>
  34. <artifactId>storage-redis</artifactId>
  35. <version>${core.version}</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.jd.blockchain</groupId>
  39. <artifactId>storage-rocksdb</artifactId>
  40. <version>${core.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.jd.blockchain</groupId>
  44. <artifactId>storage-kvdb</artifactId>
  45. <version>${core.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.jd.blockchain</groupId>
  49. <artifactId>tools-initializer-booter</artifactId>
  50. <version>${core.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.jd.blockchain</groupId>
  54. <artifactId>tools-keygen-booter</artifactId>
  55. <version>${core.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.jd.blockchain</groupId>
  59. <artifactId>tools-regparti-booter</artifactId>
  60. <version>${core.version}</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.jd.blockchain</groupId>
  64. <artifactId>tools-activeparti-booter</artifactId>
  65. <version>${core.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.jd.blockchain</groupId>
  69. <artifactId>tools-deactiveparti-booter</artifactId>
  70. <version>${core.version}</version>
  71. </dependency>
  72. </dependencies>
  73. <build>
  74. <plugins>
  75. <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId>
  76. <executions> <execution> <id>copy-dependencies</id> <phase>package</phase>
  77. <goals> <goal>copy-dependencies</goal> </goals> <configuration> ${project.build.directory}
  78. class的输出目录不做设置的话默认代表项目根目录的target目录; 也可以使用“自定义文件夹/自定义文件夹 例如:a/b”,也可以使用绝对路径如:“D:\test”
  79. <outputDirectory>${project.build.directory}/dependencies</outputDirectory>
  80. <excludeTransitive>false</excludeTransitive> <stripVersion>false</stripVersion>
  81. <includeScope>runtime</includeScope> </configuration> </execution> </executions>
  82. </plugin> -->
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-jar-plugin</artifactId>
  86. <configuration>
  87. <archive>
  88. <manifest>
  89. <mainClass>com.jd.blockchain.boot.peer.PeerBooter</mainClass>
  90. <addClasspath>true</addClasspath>
  91. <classpathPrefix>.</classpathPrefix>
  92. <useUniqueVersions>false</useUniqueVersions>
  93. </manifest>
  94. </archive>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-assembly-plugin</artifactId>
  100. <executions>
  101. <execution>
  102. <id>make-assembly</id>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>single</goal>
  106. </goals>
  107. <configuration>
  108. <finalName>jdchain-peer</finalName>
  109. <descriptors>
  110. <descriptor>src/main/resources/assembly.xml</descriptor>
  111. </descriptors>
  112. </configuration>
  113. </execution>
  114. </executions>
  115. </plugin>
  116. <!-- 生成SHA-256校验文件 -->
  117. <plugin>
  118. <groupId>net.nicoulaj.maven.plugins</groupId>
  119. <artifactId>checksum-maven-plugin</artifactId>
  120. <version>1.8</version>
  121. <executions>
  122. <execution>
  123. <goals>
  124. <goal>artifacts</goal>
  125. </goals>
  126. </execution>
  127. </executions>
  128. <configuration>
  129. <algorithms>
  130. <algorithm>SHA-256</algorithm> <!--采用SHA-256算法,还支持其他算法-->
  131. </algorithms>
  132. <file>${project.basedir}/target/deployment-peer-${project.version}.zip</file><!--给zip文件进行加密-->
  133. <xmlSummary>true</xmlSummary><!--生成XML格式的md5文件-->
  134. <xmlSummaryFile>${project.basedir}/target/SHA-256.xml</xmlSummaryFile>
  135. </configuration>
  136. </plugin>
  137. </plugins>
  138. </build>
  139. </project>