JsTestDriver - Отсутствует ошибка артефакта
Я пытаюсь интегрировать JsTestDriver в Maven, чтобы также проверить свои сценарии перед развертыванием. На самом деле я выполняю шаги, описанные в Google Code здесь. Но, к сожалению, я не могу разрешить зависимость. Несмотря на то, что я добавил репозиторий и плагин-репозиторий в свой Maven settings.xml, я все еще получаю ошибку "Отсутствует артефакт com.googlecode.jstd-maven-plugin:jstd-maven-plugin:jar:1.3.2.5".
Я буду так счастлив, если кто-нибудь сможет направить меня.
Заранее спасибо.
С уважением.
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>
// ..................
1 ответ
Попробуйте добавить ниже в ваш проект файл 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>
Надеюсь это поможет.