Some common errors encountered in Maven

Source: Internet
Author: User

1,eclipse could not resolve archetype this is what happens when you select archetype when you create a project in eclipse:

In the new Maven engineering times wrong:

Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:release from any of the configured Repositories.
Could not resolve artifact
Missing Org.apache.maven.archetypes:maven-archetype-quickstart:pom:release

Could not resolve archetype This error occurs because the project was created with the MAVEN Warehouse Center I configured, but the Nexus server was not started and will not be found in maven. But when you restart the Nexus, it won't try to get it again. This is a hint in the details of the error.

The workaround for could not resolve archetype is to delete the jar downloaded from the Maven repository, the download path for the Maven settings.xml configuration, and replace a workplace, then reconfigure MAVEN,

Re-importing the project is possible.

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 generally does not start the Central warehouse nexus when the jar is first updated, but it is not updated after the reboot. Now my solution is to go into the Nexus directory under the D:\Soft\windows\nexus-2.14.0-01-bundle\sonatype-work\nexus\storage\central, Locate the directory of the jar package that you failed to update. Re-install it in Eclipse. This is one of the most common mistakes Maven has encountered

Some common errors encountered in Maven

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.