Maven的Jasmine插件:SNAPSHOT的问题

Jasmine plugin for Maven: issue with SNAPSHOT

本文关键字:SNAPSHOT 问题 插件 Jasmine Maven      更新时间:2023-09-26

我是Maven和Jasmine的新手,为了开始,我尝试遵循github页面上的使用示例,这是第一个命令:

mvn原型:生成-DarchetypeRepository=http://searls-maven-repository.googlecode.com/svn/trunk/snapshots -DarchetypeGroupId=com.github。-DarchetypeArtifactId=jasmine-archetype -DarchetypeVersion=1.3.1.0-SNAPSHOT -DgroupId=comacme -DartifactId=my-jasmine-project -Dversion=0.0.1-SNAPSHOT

如果你去这里的原型库;最新的快照是1.2.0。以上命令参考-DarchetypeVersion=1.3.1.0-SNAPSHOT中的1.3.1。

我得到这个错误:

执行目标org.apache.maven.plugins:maven- prototype -plugin:2.2:在project standalone-pom上生成(default-cli):所需的原型不存在(com.github.searls:jasmine- prototype:1.3.1.0-SNAPSHOT)

我应该使用其他存储库吗?

欢呼

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

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