Questions about always downloading POM when Maven starts a project

Source: Internet
Author: User
questions about always downloading POM when Maven starts a project Problem Description

The local repository already has the relevant jar package, and the MAVEN project also reports an error, but Tomcat:run when launching the project, always download the POM document on the network, otherwise it will report the failure of the download. Viewing the repository Discovery Pom file also exists, but will still request to download the POM document. workaround Find the folder where the Pom is located, view _maven.repositories or _remote.repositories files to modify the file jar name > repository = found above, you need to change the repository here to your local, This should be used to determine whether the Pom document local repository is the key to the existence of the library name is not available, on behalf of the local repository does not have a POM document modified Pom document, will not take effect immediately, need to go into Eclipse's Maven repositories view, Locate the local repository Rebuild index re-create the indexes, then the problem is resolved.

Note

In the second step, you are prompted for the resource pool name, with the id attribute of the settings.xml mirror.

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.