[Spring Boot] Intellij Maven 3.8.1 버전 충돌

Ik·2023년 3월 13일
0

Back

목록 보기
18/33

회사 CMS 파일 pull해서 실행하는데 이슈 발생했고 해결 과정





Error 내용

error : 
[ERROR] Failed to execute goal on project sjcms: Could not resolve dependencies for project kr.co.esjee:sjcms:war:2.0.0: Failed to collect dependencies at egovframework.rte:egovframework.rte.fdl.cmmn:jar:3.9.0: Failed to read artifact descriptor for egovframework.rte:egovframework.rte.fdl.cmmn:jar:3.9.0: Could not transfer artifact egovframework.rte:egovframework.rte.fdl.cmmn:pom:3.9.0 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [mvn2 (http://repo1.maven.org/maven2/, default, releases+snapshots), egovframe (http://maven.egovframe.kr:8080/maven/, default, releases), google-api-services (http://google-api-client-libraries.appspot.com/mavenrepo, default, releases+snapshots)] -> [Help 1]
[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/DependencyResolutionException






과정

  • Version 관련 이슈라 생각해 war, jdk 등 버전 바꾸면서 실행했지만 실패
  • mirror 설정 시도 했지만 실패

해결

  • 처음 intellij에 pull해서 build 과정 중에 해당 메시지 확인
- Maven POM 파일에 HTTP 저장소 http://repo1.maven.org/maven2/이(가) 없는지 확인
- Maven POM 파일에 HTTP 저장소 http://google-api-client-libraries.appspot.com/mavenrepo이(가) 없는지 확인
- Maven settings.xml에서 HTTP URL을 허용하는 http://repo1.maven.org/maven2/, http://google-api-client-libraries.appspot.com/mavenrepo의 미러를 추가
- 설정에서 Maven을 3.8.1 이전의 버전으로 다운그레이드
  • 이는 maven 3.8.1v 부터 http를 block했기에 프로젝트 종속성 lib를 정상적으로 다운받지 못해 build 이슈 발생하는 것
  • url 수정
    • http://maven.egovframe.kr:8080/maven/ => https://repo1.maven.org/maven2/
    • http://maven.egovframe.kr:8080/maven/ => https://maven.egovframe.go.kr/maven/
    • http://google-api-client-libraries.appspot.com/mavenrepo => https://google-api-client-libraries.appspot.com/mavenrepo

0개의 댓글