[SpringBoot] Error - cvc-elt.1.a: Cannot find the declaration of element 'project'. (pom.xml)

원인

  • 파일 : pom.xml
  • 메시지 : cvc-elt.1.a: Cannot find the declaration of element 'project'.
  • 코드
// error code : "https://maven.apache.org/xsd/maven-4.0.0.xsd"

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">

해결방법

"https://maven.apache.org/xsd/maven-4.0.0.xsd" -> "http://maven.apache.org/xsd/maven-4.0.0.xsd"

https -> http

주석

스프링 스타트 프로젝트 마법사로 프로젝트를 만들자마자, 빨간 엑스표시에 봉착.
확인해보니 폼 오류였다.
마법사로 만들었기 때문에 뭐 이상한 게 없지 않나 싶어서 대체 뭐야하고 들여다 봤다,
범인은 바로 pom.xml의 "https://maven.apache.org/xsd/maven-4.0.0.xsd"였다.
정확히는 "https" 이 부분 때문이었다.
그래서 "http"로 수정을 해주니 에러 해결.
대부분 오타가 아닌 경우에는 https -> http 로 처리하면 해결되는 경우가 많다.