POM error: Cannot find org.springframework.boot

I am trying to set up a spring boot project, but getting an error. I researched and tried various options, but so far no luck. Any help would be greatly appreciated.

Project build error: Insoluble parent POM: Could not find org.springframework.boot: spring-boot-starter-parent: pom: 1.1.3.RELEASE in http://repo.maven.apache.org/ maven2 was cached locally repositories, the permission will not be reloaded until the update interval of the central element has expired, or the updates are not forced and "parent.relativePath" indicates the absence of a local POM

POM.XML (error in the parent tag)

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.programmingfree</groupId> <artifactId>spring-data-rest-angular</artifactId> <version>0.0.1-SNAPSHOT</version> <name>Spring Data Rest + AngularJS</name> <description>This project uses Spring Data Rest and AngularJS to perform CRUD operations against MySql Database.</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.1.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-rest</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> </dependencies> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <start-class>com.programmingfree.springservice.Application</start-class> <java.version>1.7</java.version> </properties> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project> 
+10
source share
8 answers

Maybe there was some kind of intermittent internet question or something like that. I faced the same problem yesterday. Updating a project (in STS or Eclipse, right-click on the project and Maven β†’ Update Project β†’ check all except Offline) after some correction.

+29
source

I have a similar exception while the maven-build process.

If you use a proxy network - update settings.xml in your maven folder

 ../apache-maven-3.2.3\conf/settings.xml 

settings.xml content

 <proxies> <proxy> <id>...</id> <active>true</active> <protocol>http</protocol> <username>....</username> <password>....</password> <host>....</host> <port>....</port> <nonProxyHosts>local.net|some.host.com</nonProxyHosts> </proxy> </proxies> project(right click) -> Maven -> Update project -> tick everything (except OfflinI) 

I solved the problem.

+2
source

Check the Settings.xml file association in the Eclipse-> Project-> Maven-> User Settings window, it should be installed by default xml from the Maven configuration folder. You may have configured your own XML file that is suitable for your projects.

+1
source

I tried several things 1. configure the settings.xml file 2. Update the maven project option for eclipse did not solve my problem 3. Run the following command manually, my problem was solved

 mvn dependency:purge-local-repository 
0
source

This happened because the STS could not find the location of the parent POM. You can go to the command line and run the mvn -x command to get the location of your Global and Local Settings.xml file. Go to Window-> Preferences-> Maven, and then set the locations for the Gloabal and User level using above command locations. Then right click on the project and go to Maven-> UpdateProject. This will solve the problem.

0
source

I am facing this problem as I write this answer. It seems that the settings of my office on the Internet restrict the downloading of content using tools such as eclipse. I am having problems with several tools like eclipse, youtube-dl. When I use my mobile internet for my laptop, it works fine. This means that you need to do something with the Internet settings.

0
source

 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.programmingfree</groupId> <artifactId>spring-data-rest-angular</artifactId> <version>0.0.1-SNAPSHOT</version> <name>Spring Data Rest + AngularJS</name> <description>This project uses Spring Data Rest and AngularJS to perform CRUD operations against MySql Database.</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.1.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-rest</artifactId> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> </dependencies> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <start-class>com.programmingfree.springservice.Application</start-class> <java.version>1.7</java.version> </properties> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project> 
0
source

Change the springboot version to the next or previous version and update the pom file. It worked for me. I had a problem with spring boot 2.1.5, so I changed it to 2.1.4 in the pom file and updated it. It worked.

0
source

All Articles