我正在尝试将JsTestDriver集成到Maven,以便在部署之前测试我的脚本。实际上,我遵循Google 这里中描述的步骤。但不幸的是,我无法解决依赖问题。尽管我在Maven settings.xml中添加了存储库和插件存储库,但仍然得到了错误的缺失工件settings.xml
如果有人能指点我,我会很高兴的。
提前谢谢。
关于你的。
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>
// ..................
发布于 2012-10-14 08:56:02
尝试将以下内容添加到项目pom.xml文件中:
<repositories>
<repository>
<id>jstd-maven-plugin google code repo</id>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jstd-maven-plugin google code repo</id>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</pluginRepository>
</pluginRepositories>
希望这能有所帮助。
https://stackoverflow.com/questions/11433352
复制相似问题