Search for a solution in the eclipse's Maven plugin that the jar in the local repository is not searchable

Source: Internet
Author: User
Search for a solution in the eclipse's Maven plugin that is not found in a jar in the local repository searches for a solution in the Eclipse's Maven plugin that does not find a jar in the local repository

Previously, children's shoes, which used MAVEN to manage the project, knew that there would be a ${user_home}.m2/repository warehouse where the jar packs would be stored. However, the jar packages in the local repository are not searchable in the Maven repository in Eclipse.

The reason is that the index index of the local repository in Maven is not updated, resulting in a search for the Maven plugin in eclipse.

Solution:

Open the menu in Eclipse window-> show view–> other–> maven--maven repositories

After opening, select local Repositories–> local repository, right click, select Build Index.

  

After updating the index, you can search for the jar package for the local warehouse by right-clicking the pom.xml file to select Maven–> add dependency or by opening the Pom.xml file and selecting Dependencies–>add.

Such as:

  

If you want to search for jars on a public service

Select Global repositories, right-click Update Index. (The update here is slow and needs to be waited patiently).

Search for a solution in the eclipse's Maven plugin that the jar in the local repository is not searchable

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.