Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven Spring 2.2.1生成错误缺少工件com.microsoft.sqlserver:sqljdbc4:jar:4.0_Maven_Spring Boot_Maven 3 - Fatal编程技术网

Maven Spring 2.2.1生成错误缺少工件com.microsoft.sqlserver:sqljdbc4:jar:4.0

Maven Spring 2.2.1生成错误缺少工件com.microsoft.sqlserver:sqljdbc4:jar:4.0,maven,spring-boot,maven-3,Maven,Spring Boot,Maven 3,对于spring 4.1.7到spring boot 2.2.1的部分,我在我的父项目中添加了spring boot starter父项目,如下所示 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2

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

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

.m2文件夹结构

Am还可参考以下链接


如何解决这个问题。

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

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