javascript - Maven 的 Jasmine 插件 : issue with SNAPSHOT

标签 javascript unit-testing maven plugins jasmine

我是 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/

相关文章:

Python单元测试模拟,获取模拟函数的输入参数

unit-testing - Go - 测试函数相等性

maven - 在 Teamcity 中设置项目运行程序以将构建 Artifact 部署到 Artifactory

javascript - 无法在通过 jQuery 的 ajax 加载的页面内执行 javascript

javascript - 使用现有指令的 AngularJS DOM 操作

javascript - 如果可拖动的 div 到达页面顶部或底部,则转到 URL

.net - 备用xUnit GUI运行器

javascript - jQuery 实时验证

java - Camel 在行动中 codehaus.mojo 插件错误

java - 属性文件 - 远程 x 本地