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.