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内容请搜索靠谱客的其他文章。
发表评论 取消回复