【问题标题】:Jasmine plugin for Maven: issue with SNAPSHOTMaven 的 Jasmine 插件:SNAPSHOT 问题
【发布时间】:2013-03-13 12:09:39
【问题描述】:

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

我收到此错误:

无法在项目standalone-pom上执行目标org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli):所需的原型不存在(com.github.searls:jasmine-原型:1.3.1.0-SNAPSHOT)

我应该使用另一个存储库吗?

干杯

【问题讨论】:

    标签: javascript unit-testing maven plugins jasmine


    【解决方案1】:

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

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-05-07
      • 1970-01-01
      • 2012-09-01
      • 2012-11-10
      • 2011-11-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多