-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
132 lines (109 loc) · 4.23 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.hyperledger.fabric-sdk</groupId>
<artifactId>answer-fabric-sdk</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>answer-fabric-sdk</name>
<description>Hyperledger-Fabric-SDK-Java</description>
<properties>
<fabric.sdk.version>1.1.0</fabric.sdk.version>
<commons.lang.version>3.1</commons.lang.version>
<alibaba.fastjson.version>1.2.31</alibaba.fastjson.version>
</properties>
<dependencies>
<!-- 引入官方 fabric-sdk-java 包 -->
<dependency>
<groupId>org.hyperledger.fabric-sdk-java</groupId>
<artifactId>fabric-sdk-java</artifactId>
<version>${fabric.sdk.version}</version>
</dependency>
<!-- 引入junit包, 方便单元测试 -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${alibaba.fastjson.version}</version>
</dependency>
</dependencies>
<!-- 使用的插件列表 -->
<build>
<plugins>
<!-- 打包插件 -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!-- 是否在生成的jar名称后带上descriptorRef的值 -->
<appendAssemblyId>true</appendAssemblyId>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<!-- 此处指定main方法入口的class -->
<mainClass>com.hyperledger.fabric.sdk.handler.SDKClient</mainClass>
</manifest>
</archive>
</configuration>
<!-- 注释掉以下executions标签内代码, 打包执行命令: mvn package assembly:single -->
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 解决资源文件的编码问题 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
<!-- 项目开发者列表 -->
<developers>
<developer>
<id>answer</id>
<name>L.Answer</name>
<email>[email protected]</email>
<url>https://github.com/AnswerCoder/answer-fabric-sdk</url>
<roles>
<role>developer</role>
</roles>
<organization>BeiJing XiWei</organization>
<organizationUrl>https://www.xiwei.com/</organizationUrl>
</developer>
</developers>
<!-- 项目的其他贡献者列表 -->
<contributors>
<contributor>
<name>XiWei Group</name>
<email>XiWei Group</email>
</contributor>
</contributors>
</project>