我是靠谱客的博主 糟糕麦片,最近开发中收集的这篇文章主要介绍Cannot create instance of interface org.apache.maven.artifact.repository.Artifac,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

maven构建子模块时报错,cmd如下:

mvn archetype:create -DgroupId=com.niciware -DartifactId=upt-web -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-cli) on project upt: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.4:create for parameter #: Cannot create instance of interface org.apache.maven.artifact.repository.ArtifactRepository: org.apache.maven.artifact.repository.ArtifactRepository.<init>() -> [Help 1]

 

很简单,只要吧 create 换成 generate

mvn archetype:generate -DgroupId=com.niciware -DartifactId=upt-web -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

最后

以上就是糟糕麦片为你收集整理的Cannot create instance of interface org.apache.maven.artifact.repository.Artifac的全部内容,希望文章能够帮你解决Cannot create instance of interface org.apache.maven.artifact.repository.Artifac所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(81)

评论列表共有 0 条评论

立即
投稿
返回
顶部