Maven: 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
来源:互联网 发布:淘宝网用网银支付 编辑:程序博客网 时间:2024/06/03 02:07
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.
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
出现要输入选择项 一路回车就好了。
0 0
- Maven: 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
- Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-site-plugin:maven
- maven创建web报Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins
- 解决:mvn archetype:create Abstract class or interface 'org.apache.maven.artifact.repository.ArtifactRe
- 导入maven项目,报错Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-clean
- Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins问题的解决
- Error:Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav ... invalid E
- Maven Could not transfer artifact org.apache.maven.plugins
- eclipse中创建maven pom.xml报错Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugin
- Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Maven-Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1
- maven工程搭建ssh,出现The import org.apache cannot be resolved
- maven missing artifact 但是 jar 存在 repository
- jar包上传maven私服出错Cannot deploy artifact from the local repository
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:2.3
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
- JAVA正则表达式 Pattern和Matcher
- 酒的配方
- Apache+Tomcat实现负载均衡
- HttpServletRequest各方法的作用及用法
- 如何用一个充气娃娃走上创业成功巅峰--基本流程
- Maven: 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
- IntelliJ IDEA 14.1上JFinal开发环境搭建手册
- 可根据字符串所占的长度(非字符串长度)自动缩小字体大小, 以适应显示区域的宽度
- python 线程,GIL 和 ctypes
- Listview中显示不同的视图布局
- 狗日的养老金
- Linux下安装Apache httpd
- 关于exe或dll文件中的字符串资源
- Ⅰ.2.6.4 如何测试 Table Widgets,以及使用外部数据文件(Qt 4)