【问题标题】:Spring 2.2.1 Build Error Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0Spring 2.2.1 构建错误缺少工件 com.microsoft.sqlserver:sqljdbc4:jar:4.0
【发布时间】:2020-03-23 23:04:20
【问题描述】:

对于 spring 4.1.7 到 spring boot 2.2.1 的部分,我在我的父项目中添加了spring-boot-starter-parent,如下所示。

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.1.RELEASE</version>
        <relativePath/>     
</parent>

当我尝试构建父子项目时,出现错误

Missing artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0

.m2 文件夹结构

我也参考以下链接 stackoverflow

如何解决这个问题。

【问题讨论】:

    标签: maven spring-boot maven-3


    【解决方案1】:

    我绑定删除 C:/Users/Administrator/.m2/repository/com/microsoft/sqlserver/sqljdbc4/4.0 文件夹然后重建项目。现在它对我来说工作正常。

    【讨论】:

      猜你喜欢
      • 2013-11-01
      • 1970-01-01
      • 2020-03-23
      • 2012-01-31
      • 1970-01-01
      • 1970-01-01
      • 2018-09-19
      • 1970-01-01
      • 2016-02-26
      相关资源
      最近更新 更多