1
2
3
4
5
|
[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 -> [He lp 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. |
在stackoverflow找到解决方式如下
1
|
mvn archetype:generate -DgroupId=storm.blueprints -DartifactId=stormDemo -DinteractiveMode=false -DarchetypeCatalog=internal
|
修改start命令为generate
参考网址为http://stackoverflow.com/questions/29147329/unable-to-create-a-new-maven-hello-world-project
原因分析:create is deprecated in maven 3.0.5 and beyond,在maven3.0.5以上版本舍弃了create,今后使用generate生成项目
CMD创建工程的时候还卡在Generating project in Interactive mode不动了 或者 Generating project in Batch mode
解决方法是加个参数 -DarchetypeCatalog=internal 让它不要从远程服务器上取catalog
出现要输入选择项 一路回车就好了。