Install the fastDFS dependency package in the Maven repository

Reason: The Maven warehouse itself does not have a fastDFS dependency, so when we import this dependency, it will report red, so we have to download this dependency to the Maven warehouse, so that it will not report red when it is imported again!

1. First download the fastDFS compressed package on github

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

 

 2. After the download is complete, unzip it to a folder

 3. The decompressed file can be opened with idea File→Open→find the decompressed directory to open, as shown in the figure below:

 4. Look at the maven of this project. You need to download the dependencies of fastdfs to this maven warehouse. File→Settings→Search for maven above

5. Then open Maven on the right and add this fastDFS dependency to the maven repository

 6. Then you can import dependencies (there will be no red flags)

<!-- FastDFS dependency -->
<dependency>
    <groupId>org.csource</groupId>
    <artifactId>fastdfs-client-java</artifactId>
    <version>1.29-SNAPSHOT</version>
</dependency>

Guess you like

Origin blog.csdn.net/liujiahuan_/article/details/126346797