解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun...

因为fastdfs-client-java-1.27-SNAPSHOT.jar这个依赖包在maven中央仓库是没有的,

需要自己编译源码成jar本地安装到maven 的本地仓库,安装完以后就能正常引用了(注意:本地必须安装了Maven,并配置好Maven环境变量)

<dependency>
      <groupId>org.csourcegroupId>
      <artifactId>fastdfs-client-javaartifactId>
      <version>1.27-SNAPSHOTversion>
dependency>

 

1.下载fastdfs-client-java开发工具包

https://github.com/happyfish100/fastdfs-client-java

解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun..._第1张图片

 

2.需要把fastdfs-client-java开发工具包打包到本地的Maven仓库

  2.1解压fastdfs-client-java-master

  2.2进入fastdfs-client-java目录,在此处打开命令窗口 cmd 

  解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun..._第2张图片

  2.3输入 mvn clean install

  

 

3.构建一小会,如出现以下。则成功把fastdfs-client-java打包到本地的Maven仓库

  解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun..._第3张图片

 

  解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun..._第4张图片

至此,更新项目Maven,pom.xml文件就不会出现找不到fastdfs-client-java依赖了。(成功导入fastdfs-client-java依赖)

  解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun..._第5张图片

 

转载于:https://www.cnblogs.com/QW-lzm/p/9158041.html

你可能感兴趣的:(解决Maven无法下载fastdfs-client-java依赖,Dependency 'org.csource:fastdfs-client-java:1.27-SNAPSHOT' not foun...)