我正在看几个maven教程视频,然后我在安装maven后遇到了这个命令:
mvn archetype:create -DgroupId=com.di.maven -DartifactId=hello-world
Run Code Online (Sandbox Code Playgroud)
构建失败并引发以下错误:
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 -> [Help 1]
Run Code Online (Sandbox Code Playgroud)
是什么原因,我该如何解决?我在Ubuntu中以用户身份运行.
Ahm*_*aya 165
改变create
以generate
mvn archetype:generate -DgroupId=com.di.maven -DartifactId=hello-world -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
Run Code Online (Sandbox Code Playgroud)
小智 7
mvn archetype:generate
-DgroupId=com.biswajit.maven
-DartifactId=com.biswajit.maven
-DarchetypeArtifactId=maven-archetype-quickstart
-DinteractiveMode=false
Run Code Online (Sandbox Code Playgroud)
创建在maven 3.0.X或更高版本中不起作用.所以使用generate而不是create
归档时间: |
|
查看次数: |
32910 次 |
最近记录: |