`

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics