Could not find org.springframework.cloud:spring-cloud-starter-aws-parameter-store-config: Required by: project : 에러 해결방법

개발하는 구황작물·2023년 2월 12일
1

개인 프로젝트

목록 보기
7/9

개인 플젝에서 aws parameterstore 적용을 위해 gradle에 해당하는 implementation을 적은 후 build를 했더니 제목과 같은 에러가 떳다.

찾아보니 spring cloud와 spring boot 버전이 맞지 않아서 발생한 문제라고 한다.(버전 확인은 -> 여기서)

그리고 아래와 같이 추가를 해주었다.

ext {
	set('springCloudVersion', "각자에게 맞는 버전")
}
...
dependencyManagement {
	imports {
		mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
	}
}
...
dependencies {
	implementation 'org.springframework.cloud:spring-cloud-starter-aws-parameter-store-config:각자에게 맞는 버전.RELEASE'
}

만약 자신의 스프링부트의 버전이 2.7x 라면 링크에 들어간 다음

ext {
	set('springCloudVersion', "2021.0.5")
}

해당하는 버전을 넣으면 된다.

그리고 여기 들어가서 각자에게 맞는 버전 맞춰서 넣으면 된다. (참고로 필자는 가장 최신버전으로 넣었다.)

dependencies {
	implementation 'org.springframework.cloud:spring-cloud-starter-aws-parameter-store-config:2.2.6.RELEASE'
}

빌드 성공

profile
어쩌다보니 개발하게 된 구황작물

0개의 댓글