1. 程式人生 > >Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:

Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:

RT,每次用maven建立一個專案都會出錯.具體報錯的內容如下;

我在cmd中輸入:mvn archetype:create -DgroupId=org.edward.hellomaven -DartifactId=HelloMaven
之後就出錯了


[ERROR] 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 paramete


r #: Abstract class or interface 'org.apache.maven.artifact.repository.ArtifactR
epository' cannot be instantiated -> [Help 1]

把 create 改成 generate 就可以了,出現什麼要你選擇,直接回車,就好了

http://stackoverflow.com/questions/29147329/unable-to-create-a-new-maven-hello-world-project