Errors frequently encountered in maven and maven

Source: Internet
Author: User

Errors frequently encountered in maven and maven

1. eclipse cocould not resolve archetype. This occurs when you select archetype when creating a project in eclipse:

An error occurred when creating a maven project:

Cocould not resolve archetype org. apache. maven. archetypes: maven-archetype-quickstart: RELEASE from any of the configured repositories.
Cocould not resolve artifact
Missing org. apache. maven. archetypes: maven-archetype-quickstart: pom: RELEASE

 

Cocould not resolve archetype this error occurs because I used my own maven repository center when creating a project, but did not start the nexus server, this will not be found in maven. But when you restart nexus, it will not try again. This will be prompted in the error details.

 

Cocould not resolve archetype solution is to delete the jar downloaded from the maven repository, that is, the download path configured in settings. xml of maven, change the workplace, and reconfigure maven,

 

Re-import the project.

 

2,was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

This error is generally because the central repository nexus is not started when the jar is updated for the first time, but it is not updated after the jar is restarted. Currently, my solution is to go to the nexus Directory D: \ Soft \ windows \ nexus-2.14.0-01-bundle \ sonatype-work \ nexus \ storage \ central, find the directory of the jar package you failed to update. Install it again in eclipse. This is one of the common errors in maven.

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.