难以下载依赖项

时间:2015-09-14 01:17:01

标签: maven selenium

我在IntelliJ中下载junit和Selenium依赖项时遇到了困难。 我已经在我的办公室笔记本电脑上安装了Intellij,并连接到我们必须通过代理进入的互联网。我在IDE中添加了所有代理详细信息,并且我能够连接到Internet,但是当我尝试下载junit和selenium依赖项时,我看到以下错误

依赖“”junit:junit:4.12“”未找到 检查Maven模型的分辨率问题。请帮忙

POM文件详细信息: -

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>Temp1</groupId>
    <artifactId>Temp1</artifactId>
    <version>1.0-SNAPSHOT</version>

    <dependencies>

        <dependency>
            <groupId>org.seleniumhq.selenium</groupId>
            <artifactId>selenium-java</artifactId>
            <version>2.47.1</version>
        </dependency>


        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>

    </dependencies>

1 个答案:

答案 0 :(得分:0)

您可以使用Maven(https://maven.apache.org/guides/mini/guide-proxies.html)配置代理以用于部分或全部HTTP请求。你试过这个吗?

ABOB.
相关问题