我是 Maven 和 Jasmine 的新手,首先我尝试遵循 on the github page 上的使用示例这是第一个命令:
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)
我应该使用另一个存储库吗?
干杯
最佳答案
我能够使用此配置生成原型(prototype)。
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
关于javascript - Maven 的 Jasmine 插件 : issue with SNAPSHOT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15384929/