我是靠谱客的博主 糟糕麦片,这篇文章主要介绍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内容请搜索靠谱客的其他文章。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部