Install Java memcached client to Maven Repository

Source: Internet
Author: User

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>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.