반응형
1. 발단
팀프로젝트를 위해 spring boot 빌드중에 자꾸 빌드가 안되고 있었음
start.spring.io로 만들었으며, 의존성도 문제 없고, gradle 버전과 java sdk버전 문제도 없었음
2. 상황
빌드가 계속 실패. 에러문구는 다음과 같았음.
A problem occurred configuring root project 'core'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.0
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.0 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5.1' but:
3. 실패원인
jcenter 인증서가 22년 11월 25일 23:59 부로 만료되서 발생한 문제
4. 힌트
검색해보니 인프런에 나와같은 사람이 한무데기...
근데 11월 25일 문제는 시간 꽤 많이 지난거같은데...
5. 처리
방법은 총 두가지
1. setting.gradle의 pluginManagement안에 아래 코드 추가
pluginManagement{
repositories{
mavenCentral()
gradlePluginPortal()
}
}
2. 스프링 버전을 3.0.0이 아닌 2.7.6으로 설정
6. 결과
난 1번 방법으로도 안되서 2번방법까지 같이 사용해서 정상적으로 빌드 성공
7. 느긴점
구글링은 신이고 무적이다
근데 이거떄매 시간많이날렸는데 빡취넹
반응형
'Debug Log > 삽질기' 카테고리의 다른 글
[짧]WSL 에러( Error: 0x80040326 Error code: Wsl/Service/0x80040326) (1) | 2023.03.31 |
---|---|
AWS) EC2 SSH 접속시 Permissions 0644 for '~.pem' are too open. (0) | 2022.12.11 |
mybatis) int 자료타입 if test 무조건 안타던 문제 (0) | 2022.08.25 |
mysql)전화번호 masking 작업 (0) | 2022.08.21 |
mysql-mybatis)일정기간별 검색 (0) | 2022.08.21 |