无法创建新的maven hello-world项目 [英] Unable to create a new maven hello-world project
本文介绍了无法创建新的maven hello-world项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在查看几个maven教程视频,然后在安装maven后遇到此命令:
I am looking at few maven tutorial videos and then I ran into this command after installing maven:
mvn archetype:create -DgroupId=com.di.maven -DartifactId=hello-world
构建失败并抛出以下内容错误:
The build fails and throws the following error:
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:create
(default-cli) on project standalone-pom: Unable to parse configuration of mojo
org.apache.maven.plugins:maven-archetype-plugin:2.3:create for parameter #: Abstract
class or interface 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be
instantiated -> [Help 1]
是什么原因以及如何解决?我在Ubuntu中以用户身份运行。
What is the reason and how can I fix it? I am running as an user in Ubuntu.
推荐答案
更改创建
到 generate
mvn archetype:generate -DgroupId=com.di.maven -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
这篇关于无法创建新的maven hello-world项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文