Installing the Java memcached client to maven repository

Source: Internet
Author: User

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
  1. <? xml &NBSP; version = &NBSP; encoding = ?>
  2. < project   = xmlns
  3.     xmlns:xsi >
  4.   < > </ >
  5.   < groupid > </ groupid >
  6.   < > </ >
  7.   < version > </ version >
  8. <dependencies >
  9. <dependency >
  10.         < groupid > </ groupid >
  11.         < > </ >
  12.         < version > </ version >
  13. </dependency >
  14. <dependency >
  15.         < groupid > </ groupid >
  16.         < > </ >
  17.         < version > </ version >
  18. </dependency >
  19. <dependency >
  20.         < groupid > </ groupid >
  21.         < > </ >
  22.         < version > </ version >
  23. </dependency >
  24. </dependencies >
  25. </project >

Installing the Java memcached client to maven repository

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.