Since there is no official MAVEN repository available for the Java memcached client at this time, it needs to be manually installed to the local repository when used. Java memcached Client jar package: Https://github.com/gwhalin/Memcached-Java-Client/downloads current 2.6.2 version of Java memcached The client relies on the Slf4j-simple, Slf4j-api, commons-pool three packages, so we can edit a pom file for it, install the Java memcached Client's jar package and the Pom file, and solve the Java Memcached client dependency 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 contents of Java-memcached-2.6.2.pom are as follows:
[HTML]View Plain Copy
- <? xml &NBSP; version = &NBSP; encoding = ?>
- < project = xmlns
- xmlns:xsi >
- < > </ >
- < groupid > </ groupid >
- < > </ >
- < version > </ version >
- <dependencies >
- <dependency >
- < groupid > </ groupid >
- < > </ >
- < version > </ version >
- </dependency >
- <dependency >
- < groupid > </ groupid >
- < > </ >
- < version > </ version >
- </dependency >
- <dependency >
- < groupid > </ groupid >
- < > </ >
- < version > </ version >
- </dependency >
- </dependencies >
- </project >
Installing the Java memcached client to maven repository