Intellij想法坚持下载依赖

时间:2018-04-29 14:25:35

标签: spring spring-boot intellij-idea

我正在使用intellij idea 2017.3.5终极版。这是我的pom.xml:

<modelVersion>4.0.0</modelVersion>

<groupId>com.deal.padang</groupId>
<artifactId>padangdeal</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>padangDeal</name>
<description>Demo project for Spring Boot</description>

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.0.1.RELEASE</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
</properties>

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-rest</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

我刚刚创建了一个新的Spring启动项目,当下载最后几个字节的依赖项(下载1039 / 1040kb)时它总是卡住。

我尝试了thisthis解决方案,但无济于事。

我发现这也发生在新克隆项目上。任何人都面临同样的问题?

0 个答案:

没有答案