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.3 kB

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