• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

mvn package 오류가 뜨는데 원인을 모르겠습니다.

21.04.03 15:08 작성 조회수 530

0

C:\Users\kjs50\IdeaProjects\SpringBootStart>mvn package

C:\Users\kjs50\IdeaProjects\SpringBootStart>set JAVA_HOME=D:\01.app\java\jdk1.6.0_31

[INFO] Scanning for projects...

Downloading: http://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-st

arter-parent/2.0.3.RELEASE/spring-boot-starter-parent-2.0.3.RELEASE.pom

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR]   The project org.example:SpringBootStart:1.0-SNAPSHOT (C:\Users\kjs50\IdeaProje

cts\SpringBootStart\pom.xml) has 1 error

[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.springframework.b

oot:spring-boot-starter-parent:pom:2.0.3.RELEASE from/to central (http://repo.maven.apac

he.org/maven2): Failed to transfer file: http://repo.maven.apache.org/maven2/org/springf

ramework/boot/spring-boot-starter-parent/2.0.3.RELEASE/spring-boot-starter-parent-2.0.3.

RELEASE.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. and 'parent.relativePath

' points at wrong local POM @ line 17, column 13 -> [Help 2]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

답변 1

답변을 작성해보세요.

0

에러 메시지만 봐서는 네트워크 오류 같기도 하고 2.0.3 버전의 pom 파일에 문제가 있는건가 싶기도 하네요. 추후에 다시 시도하시거나 스프링 부트 2.0.3 버전보다 상위 버전으로 시도해 보시기 바랍니다. 2.0.9.RELEASE 버전이 2.0대에서는 가장 최신 버전이네요.