Use idea to bring maven to build Java project times wrong.

Source: Internet
Author: User

Today using idea to build Maven project times wrong:  

[INFO] Scanning for projects ... [INFO] Searching repository for plugin with prefix: ' Archetype '. [INFO]------------------------------------------------------------------------[ERROR] BUILD Error[info]--------- ---------------------------------------------------------------[INFO] Error building Pom (May is not is this project ' s POM  ). Project id:org.apache.maven.plugins:maven-archetype-plugin Reason:error getting POM for ' org.apache.maven.plugins: Maven-archetype-plugin ' from the repository:failed to resolve artifact, possibly due to a repository list that's not app  Ropriately equipped for this artifact ' s metadata.org.apache.maven.plugins:maven-archetype-plugin:pom:2.3-snapshot From the specified remote repositories:central () for project Org.apache.maven.plugins:maven-archetype-plugin[info]--- ---------------------------------------------------------------------[INFO] For more information, run Maven with the- E Switch[info]------------------------------------------------------------------------[INFO] Total time:  <1Second[info] finished At:thu Jan 23:10:20 CST 2014[info] Final Memory:1m/15m[info]------------------------------ ------------------------------------------

  Solution:

Cause project creation to fail because there is no Maven-archetype-plugin.jar package caused by no local warehouse.
After I removed the Maven-archetype-plugin directory from the/org/apache/maven/plugins/directory in the local MAVEN repository and then tried the command again, the problem was resolved.

Use idea to bring maven to build Java project times wrong.

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.