mvn archetype:create 报错
2016-05-05 10:11
113 查看
刚下载配置完maven,在命令行新建项目时报错: 建项目的命令为:mvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -DpackageName=org.sonatype.mavenbook 报错信息为: [INFO] Scanning for projects... [INFO] Building Maven Stub Project (No POM) 1 [INFO] --- maven-archetype-plugin:2.3:create (default-cli) @ standalone-pom --- [INFO] BUILD FAILURE [INFO] Total time: 2.728 s [INFO] Finished at: 2015-04-14T13:36:35+08:00 [INFO] Final Memory: 14M/108M [INFO] ------------------------------------------------------------------------ [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 #: Cannot create instance of interface org.apache.maven.artifact.repository.Ar tifactRepository -> [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: 修改create命令为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生成项目
相关文章推荐
- RuleWizard规则定制小结
- jquery根据值选中相应的checkbox
- Caused by: java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute questionList
- C/C++代码静态检查工具Cppcheck在VS2008开发环境中的安装配置和使用
- http post传送文件详解
- 生产者-消费者问题(producer-consumer-problem)
- Jedis对于Redis的使用(一)
- Wireshark: There are no interfaces on which a capture can be done
- 数组去重方法总结
- rac ORA-00245 报错
- 28岁papi酱正在过时 00后网红的实用战争
- Android Studio 导出APK
- KairosDB 监控系统介绍
- MySQL 数据库 varchar 到底可以存多少个汉字,多少个英文呢?我们来搞搞清楚
- 4月国内操作系统份额:Win 7份额52% 霸主地位巩固
- Mybatis与Ibatis的区别
- 四大主流开源BI商业智能平台对比评测
- Linux死锁调试之hardlockup
- ios开发笔记-设置带图片的button的圆角在AL下失效
- Zookeeper分布式集群安装教程