Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.4.RELEASE
2017-12-20 13:03
1881 查看
在使用maven,添加spring boot parent的时候报错
解决办法
在项目目录下执行
即打开终端,进入出错项目的根目录,然后使用 maven bin 目录下的 mvn 编译一下,完成之后右键项目 Maven——Update Project 即可。
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.9.RELEASE</version> </parent>
解决办法
在项目目录下执行
mvn compile命令
完成之后右键项目 Maven——Update Project 即可。
即打开终端,进入出错项目的根目录,然后使用 maven bin 目录下的 mvn 编译一下,完成之后右键项目 Maven——Update Project 即可。
相关文章推荐
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.4.RELEASE
- Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE
- Could not transfer artifact org.springframework:spring-tx:jar:3.2.3.RELEASE
- Could not transfer artifact org.springframework:spring-tx:jar:3.2.3.RELEASE
- 【SpringBoot】RestTemplate调用报错:'org.springframework.web.client.RestTemplate' that could not be found.
- Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1
- Could not download spring-boot-autoconfigure.jar (org.springframework.boot: spring-boot-autoconfigur
- 使用Maven 构建项目的时候 pom.xml 异常:ArtifactTransferException: Failure to transfer org.springframework:spring
- 编译maven项目出现Could not find artifact org.restlet.jee:org.restlet.parent:pom:2.2.1问题
- Maven 工程错误Could not transfer artifact org.codehaus.plexus:plexus-io:pom:2.0.1 from/to central
- springBoot:Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire fi
- org.springframework.http.converter.HttpMessageNotReadableException: Could not read document:
- org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representatio
- org.springframework.beans.factory.BeanCreationException: Could not autowire field:
- :[org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a];
- org.springframework.dao.DataIntegrityViolationException: Could not execute JDBC batch update; nested
- 关于SpringMVC中org.springframework.beans.factory.BeanCreationException: Could not autowire field:的问题的解决
- Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes
- org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection
- Could not instantiate bean class [org.springframework.web.multipart.MultipartFile]: Specified class