1 <?xml version="1.0" encoding="UTF-8"?>
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
7 <groupId>io.bytom</groupId>
8 <artifactId>bytom-sdk-java</artifactId>
9 <version>1.0-SNAPSHOT</version>
10 <packaging>jar</packaging>
12 <name>bytom-sdk-java</name>
13 <!-- FIXME change it to the project's website -->
14 <url>http://www.example.com</url>
18 <name>successli</name>
19 <email>successli@outlook.com</email>
20 <url>https://github.com/successli</url>
25 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
30 <groupId>junit</groupId>
31 <artifactId>junit</artifactId>
32 <version>4.12</version>
36 <groupId>log4j</groupId>
37 <artifactId>log4j</artifactId>
38 <version>1.2.17</version>
41 <groupId>com.squareup.okhttp</groupId>
42 <artifactId>okhttp</artifactId>
43 <version>2.5.0</version>
46 <groupId>com.squareup.okhttp</groupId>
47 <artifactId>mockwebserver</artifactId>
48 <version>2.5.0</version>
52 <groupId>com.google.code.gson</groupId>
53 <artifactId>gson</artifactId>
54 <version>2.8.0</version>
57 <groupId>org.bouncycastle</groupId>
58 <artifactId>bcpkix-jdk15on</artifactId>
59 <version>1.56</version>
63 <distributionManagement>
66 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
70 <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
72 </distributionManagement>
75 <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
78 <artifactId>maven-clean-plugin</artifactId>
79 <version>3.0.0</version>
81 <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
83 <artifactId>maven-resources-plugin</artifactId>
84 <version>3.0.2</version>
87 <artifactId>maven-compiler-plugin</artifactId>
88 <version>3.7.0</version>
91 <artifactId>maven-surefire-plugin</artifactId>
92 <version>2.20.1</version>
95 <artifactId>maven-jar-plugin</artifactId>
96 <version>3.0.2</version>
99 <artifactId>maven-install-plugin</artifactId>
100 <version>2.5.2</version>
103 <artifactId>maven-deploy-plugin</artifactId>
104 <version>2.8.2</version>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-source-plugin</artifactId>
109 <version>2.2.1</version>
112 <id>attach-sources</id>
114 <goal>jar-no-fork</goal>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-javadoc-plugin</artifactId>
122 <version>2.9.1</version>
125 <id>attach-javadocs</id>
136 <groupId>org.apache.maven.plugins</groupId>
137 <artifactId>maven-compiler-plugin</artifactId>
144 <artifactId>maven-assembly-plugin</artifactId>
146 <!--这部分可有可无,加上的话则直接生成可运行jar包-->
149 <!--<mainClass>${exec.mainClass}</mainClass>-->
153 <descriptorRef>jar-with-dependencies</descriptorRef>
155 <!-- mvn assembly:assembly -Dmaven.test.skip=true -->
156 <!-- mvn javadoc:javadoc -->
162 <directory>src/main/resources</directory>
163 <filtering>true</filtering>