Eclipse Add maven dependency cannot find jar in Maven library

Source: Internet
Author: User

In the development, often need to add third-party jar to Maven library, add Jar method, there is not much introduction, online a lot, the following is to add Dana's memcached client jar example to illustrate the problems encountered and solutions.

1. Installing a third-party jar

into CMD,

f:\java_memcached-release_2.6.6>mvn install:install-file-dfile=java_memcached-r

Elease_2.6.6.jar-dgroupid=com.dana-dartifactid=memcached-dversion=2.6.6-dpac

Kaging=jar-dgeneratepom=true

This installs our third-party jar in our local library!

2. Rebuild the Maven local library (Repository) index (window->show view->other->maven->meven repositorise Click OK and click Local in the View repositorise Right-click Rubuild Index)

In fact, this step is equivalent to having Maven re-index the jar in the local responsitory so that we can search the package for our newly installed jar.

Transferred from: Http://my.oschina.net/Boston/blog/167555?fromerr=Z7nbtMDP

Eclipse Add maven dependency cannot find jar in Maven library

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.