1
我正在尝试整合JsTestDriver到Maven在部署前测试我的脚本。 其实,我会按照Google代码here中描述的步骤进行操作。但不幸的是,我无法解决依赖关系。尽管我在我的Maven settings.xml中添加了repository和plugin-repository,但我仍然收到错误'缺少工件com.googlecode.jstd-maven-plugin:jstd-maven-plugin:jar:1.3.2.5'。JsTestDriver - 丢失的神器错误
如果有人能够引导我,我会非常高兴。
在此先感谢。
问候。
的settings.xml
// ..................
<repository>
<id>jstd-maven-plugin google code repo</id>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</repository>
<pluginRepository>
<id>jstd-maven-plugin google code repo</id>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</pluginRepository>
// ..................
的pom.xml
// ..................
<properties>
<jstd.version>1.3.2.5</jstd.version>
</properties>
<dependency>
<groupId>com.googlecode.jstd-maven-plugin</groupId>
<artifactId>jstd-maven-plugin</artifactId>
<version>${jstd.version}</version>
<scope>test</scope>
</dependency>
<plugin>
<groupId>com.googlecode.jstd-maven-plugin</groupId>
<artifactId>jstd-maven-plugin</artifactId>
<version>${jstd.version}</version>
<configuration>
<port>9876</port>
<reset>true</reset>
<verbose>true</verbose>
<server>localhost:9876</server>
<runnerMode>INFO</runnerMode>
<config>src/test/resources/jsTestDriver.conf</config>
<jar>src/test/resources/JsTestDriver-1.3.4.b.jar</jar>
</configuration>
<executions>
<execution>
<id>run-tests</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
// ..................