Невозможно получить зависимость во внутреннем хранилище - PullRequest
0 голосов
/ 06 февраля 2012

Мы используем Maven 3.0.3. Мы развернули файл JAR во внутреннем хранилище по адресу

http://maven/maven_repo/repositories/release/org/openqa/selenium/server/selenium-server/0.9.2/selenium-server-0.9.2-standalone.jar

Затем я включил эту зависимость ...

    <dependency>
        <groupId>org.openqa.selenium.server</groupId>
        <artifactId>selenium-server</artifactId>
        <version>0.9.2</version>
        <scope>test</scope>
    </dependency>

Кроме того, в моем файле ~ / .m2 / settings.xml есть наш внутренний репозиторий ...

            <repository>
                <id>mycoInternalRelease</id>
                <layout>default</layout>
                <name>myco Internal Repository</name>
                <url>http://maven/maven_repo/repositories/release</url>
                <releases>
                    <enabled>true</enabled>
                    <checksumPolicy>fail</checksumPolicy>
                    <updatePolicy>always</updatePolicy>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                    <checksumPolicy>fail</checksumPolicy>
                    <updatePolicy>always</updatePolicy>
                </snapshots>
            </repository>

Несмотря на все это, когда я запускаю pom, я получаю ошибку

[ERROR] Failed to execute goal on project myco-productplus-web: Could not resolve dependencies for project myco-productplus:myco-productplus-web:war:1.0-SNAPSHOT:The following artifacts could not be resolved: org.openqa.selenium.server:selenium-server:jar:0.9.2, org.openqa.selenium.server:selenium-server-coreless:jar:0.9.2: Could not find artifact org.openqa.selenium.server:selenium-server:jar:0.9.2 in mycoInternalRelease (http://maven/maven_repo/repositories/release) -> [Help 1]
[ERROR]

Как я могу излечить боль? Спасибо, Дэйв

1 Ответ

1 голос
/ 06 февраля 2012

Если ваш артефакт называется "selenium-server-0.9.2-standalone.jar", вам может потребоваться добавить <classifier>standalone</classifier> к объявлению зависимости в pom.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...