[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.448 s
[INFO] Finished at: 2015-06-29T16:22:06+08:00
[INFO] Final Memory: 9M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2
.3:generate (default-cli) on project standalone-pom: Execution default-cli of go
al org.apache.maven.plugins:maven-archetype-plugin:2.3:generate failed: Plugin o
rg.apache.maven.plugins:maven-archetype-plugin:2.3 or one of its dependencies co
uld not be resolved: The following artifacts could not be resolved: org.codehaus
.groovy:groovy:jar:1.8.3, org.apache.ant:ant:jar:1.8.1: Failure to find org.code
haus.groovy:groovy:jar:1.8.3 in http://localhost:8081/nexus/content/groups/publi
c was cached in the local repository, resolution will not be reattempted until t
he update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
你是不是断网了啊,有可能是更新创库失败
检查下setting.xml文件
参考这个网址:http://stackoverflow.com/questions/29147329/unable-to-create-a-new-maven-hello-world-project
第一种原因是:create is deprecated in maven 3.0.5 and beyond,将create替换成generate,正确写法是:mvn archetype:generate -DarchetypeArtifactId=maven-archetype-archetype
第二种原因是:……我也不知到为什么,但是我的是这个原因,在pom文件里加入了这段话成功的。
Add
<dependency><groupId>commons-lang</groupId><artifactId>commons-lang</artifactId><version>2.3</version></dependency>
to your pom file in
{user.home}/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.3
联网试一试