无法获取内部存储库中的依赖项

发布于 2025-01-02 22:53:03 字数 2167 浏览 0 评论 0 原文

我们使用的是 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]

How can Iheal the 疼痛?谢谢,-戴夫

We are using Maven 3.0.3. We have deployed a JAR file to an internal repository at

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

I have then included this dependency ...

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

Also, in my ~/.m2/settings.xml file, I have our internal repository ...

            <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>

Despite all this, when I run my pom, I get the error

[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]

How can I heal the pain? Thanks, - Dave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离鸿 2025-01-09 22:53:03

鉴于您的工件名为“selenium-server-0.9.2-standalone.jar”,您可能需要将 standalone 添加到 pom.xml 中的依赖项声明中。

Given your artifact is named "selenium-server-0.9.2-standalone.jar" you might need to add <classifier>standalone</classifier> to your dependency declaration in your pom.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文