git clone https://github.com/happyfish100/fastdfs-client-java.git
# 进入下载好的fastdfs-client-java 解压
$ cd /fastdfs-client-java
# 使用maven打包jar
$ mvn clean install
构建完成后
- 会自动把
fastdfs-client-java-1.27-SNAPSHOT.jar
安装到本地的Maven仓库
[INFO] Installing /Users/mht/Downloads/fastdfs-client-java-master/target/fastdfs-client-java-1.27-SNAPSHOT.jar to /Users/mht/.m2/repository/org/csource/fastdfs-client-java/1.27-SNAPSHOT/fastdfs-client-java-1.27-SNAPSHOT.jar
[INFO] Installing /Users/mht/Downloads/fastdfs-client-java-master/pom.xml to /Users/mht/.m2/repository/org/csource/fastdfs-client-java/1.27-SNAPSHOT/fastdfs-client-java-1.27-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:02 min
[INFO] Finished at: 2018-11-21T18:12:05+08:00
[INFO] ------------------------------------------------------------------------
mhtdeMacBook-Pro:fastdfs-client-java-master mht$
<dependency>
<groupId>org.csource</groupId>
<artifactId>fastdfs-client-java</artifactId>
<version>1.27-SNAPSHOT</version>
</dependency>