Error while booting Spring Boot

Asked

Viewed 41 times

1

I’m studying Systems Development and Analysis, and before in programming classes I was learning to use Java with Spring Boot. I use Netbeans 8.2 with JDK 8u261 and I have two Hds, I try to save all the files in D, I don’t know if that’s the reason you’re having trouble. Now that I’m going back to online classes because of the pandemic, I thought I’d go over the matter. Out of nowhere to just build the project I get a lot of errors, I managed to solve at least two, but these two I get nothing. I hope I helped myself please. I tried to take a photo, but it didn’t look good and I thought I should copy and paste what appears on the console. Please try to help me until this week since next week start my classes, obg.

cd C:\Users\Home\Downloads\osworks-api\osworks-api; "JAVA_HOME=D:\\Program Files\\Java\\jdk1.8.0_261" cmd /c "\"\"D:\\Program Files\\NetBeans 8.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"D:\\Program Files\\NetBeans 8.2\\java\\maven-nblib\\netbeans-eventspy.jar\" clean install\""
Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.1/spring-boot-starter-parent-2.4.1.pom

The build could not read 1 project -> [Help 1]
  
  The project com.algaworks.osworks:osworks-api:0.0.1-SNAPSHOT (C:\Users\Home\Downloads\osworks-api\osworks-api\pom.xml) has 1 error
    Non-resolvable parent POM: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.1 from/to central (http://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.4.1/spring-boot-starter-parent-2.4.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath' points at wrong local POM @ line 5, column 10 -> [Help 2]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
'cmd' nÆo ‚ reconhecido como um comando interno
ou externo, um programa oper vel ou um arquivo em lotes.
  • Good morning, put your pom.xml tbm!

  • Develop in the Spring Tool Suite, it will help you more and these small mistakes will not happen.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.