简体   繁体   中英

Dependency not found error in pom.xml in a maven project

I created a maven project.
It is getting an error because of this dependency in the POM file.
POM.XML

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

Project 'org.springframework.boot:spring-boot-starter-parent:2.2.0.RELEASE' not found. It gives error.
error description: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.0.RELEASE from/to central

Thank you for your help.

do this:

<dependency>
<groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-starter-parent</artifactId>
<version>2.2enter code here.6.RELEASE</version>
<type>pom</type>
</dependency>

Note: Create Maven or anyone for spring using spring initializr( https://start.spring.io ), so you will never face these kinds of problems

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM