首页 > 解决方案 > Maven 没有为 spring 框架下载 jar 文件

问题描述

我尝试过各种版本。请帮忙,我是新手。pom文件包含在下面

这是我的 pom 依赖项代码。请让我知道可能的错误或解决方案。

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>3.8.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>4.3.8.RELEASE</version>
    </dependency>
</dependencies>

标签: springmaven

解决方案


您需要包含 spring web starter 依赖项,因为启动该过程需要更多依赖项,并且每次将包解压缩到 IDE 时都需要 Internet 来下载依赖项。所以试试这个方法就可以解决了。否则在同一个循环中回复,以便我们对其进行排序。

使用此链接获取依赖项。入门网站


推荐阅读