RT,每次用maven创建一个项目都会出错.具体报错的内容如下;
我在cmd中输入:mvn archetype:create -DgroupId=org.edward.hellomaven -DartifactId=HelloMaven
之后就出错了
[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 paramete
r #: Abstract class or interface 'org.apache.maven.artifact.repository.ArtifactR
epository' cannot be instantiated -> [Help 1]
把
create 改成 generate 就可以了,出现什么要你选择,直接回车,就好了
http://stackoverflow.com/questions/29147329/unable-to-create-a-new-maven-hello-world-project
本文解决在使用Maven创建项目时遇到的无法解析配置的问题,通过将命令中的create改为generate并直接回车解决问题。

被折叠的 条评论
为什么被折叠?



