Currently, Java memcached client does not have an official Maven repository for use. Therefore, you need to manually install it to the local repository when using it. Java memcached client jar package: https://github.com/gwhalin/Memcached-Java-Client/downloads currently 2.6.2 version of Java memcached client to rely on slf4j-simple, slf4j-api, commons-pool three packages, so we can edit a pom file for it, install the jar package of the Java memcached client and the POM file together to solve the dependency of the Java memcached client on other jar packages. Installation command:
MVN install: Install-file-dfile =/path/to/java-memcached-release_2.6.2.jar-dpomfile =/path/to/java-memcached-2.6.2.pom
The content of the java-memcached-2.6.2.pom is:
<? XML version = "1.0" encoding = "UTF-8"?> <Project xsi: schemalocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"> <modelversion> 4.0.0 </modelversion> <groupid> COM. danga </groupid> <artifactid> JAVA-memcached </artifactid> <version> 2.6.2 </version> <dependencies> <dependency> <groupid> Org. slf4j </groupid> <artifactid> slf4j-simple </artifactid> <version> 1.6.2 </version> </dependency> <groupid> Org. slf4j </groupid> <artifactid> slf4j-api </artifactid> <version> 1.6.2 </version> </dependency> <groupid> commons-pool </groupid> <artifactid> commons-pool </artifactid> <version> 1.5.6 </version> </dependency> </dependencies> </Project>