2013-03-13 227 views
1

我是新來的Maven和茉莉,並開始了我儘量遵循on the github page的使用例子,這是第一個命令開始:茉莉花插件的Maven:問題與快照

mvn archetype:generate -DarchetypeRepository= http://searls-maven-repository.googlecode.com/svn/trunk/snapshots -DarchetypeGroupId=com.github.searls -DarchetypeArtifactId=jasmine-archetype -DarchetypeVersion=1.3.1.0-SNAPSHOT -DgroupId=com.acme -DartifactId=my-jasmine-project -Dversion=0.0.1-SNAPSHOT

如果你去the archtype repository here;最新的快照是1.2.0。上面的命令參考-DarchetypeVersion=1.3.1.0-SNAPSHOT中的1.3.1。

我得到這個錯誤:

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.github.searls:jasmine-archetype:1.3.1.0-SNAPSHOT)

是否有另一個倉庫,我應該使用?

乾杯

回答

0

我能夠使用此配置生成原型。

mvn archetype:generate \ 
-DarchetypeRepository=http://repo1.maven.org/maven2/com/github/searls/jasmine-archetype/2.0/ \ 
-DarchetypeGroupId=com.github.searls \ 
-DarchetypeArtifactId=jasmine-archetype \ 
-DarchetypeVersion=2.0 \ 
-DjasminePluginVersion=2.1 \ 
-DgroupId=com.test \ 
-DartifactId=test \ 
-Dversion=1.0