Web/Spring

회사망 Gradle 빌드 시 Plugin [id: 'org.springframework.boot' ... 에러 발생 시

불타는고굼이 2024. 1. 8. 15:05
반응형

최근 새로운 프로젝트 진행하는데 
고객사 클라우드 PC에서 작업을 해야되서 프로젝트 세팅부터 정말 원할하게 진행되는게 없다..

 

그 중 하나인 개발환경 세팅하고 Gradle 빌드하는데 

Server Certificates is not trusted 라고 떠서 여기저기 찾아보다 아래 방식으로 일단 설정해줬다

Server Certificates  설정 변경

  • SSL 통신 관련 옵션을 해제
    • File > Settings > Tools > Server Certificates > Accept non-trusted certificates automatically 체크

난 일단 위방식으로 진행했다


참고 링크 : https://m.blog.naver.com/PostView.nhn?blogId=youzang7&logNo=221192794441&proxyReferer=https:%2F%2Fwww.google.com%2F

 

intellij Server Certificates 문제

보통 회사내에서 SSL 통신을 시도시 방화벽 문제로 인해서 Server Certificates 문제가 많이 발...

blog.naver.com

 

그럼 이제 저문제는 해결 됐는데 
또다른 문제가 발생했다

 

Plugin [id: 'org.springframework.boot', version: '3.X.X'] was not found in any of the following sources:


참조사이트를 보니 방화벽때문에 gradle-wrapper.properties의 distributionUrl을 못가져오고 있는 것 같다

내 spring boot 버전에 맞춰서 소스를 수정해줬다.

 

gradle 설정 변경

buildscript {
	repositories {
		mavenLocal()
		maven { url 'https://maven.aliyun.com/repository/google/' }
		maven { url 'https://maven.aliyun.com/repository/public/' }
		maven { url 'https://maven.aliyun.com/repository/spring/' }
		maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' }
		maven { url 'https://maven.aliyun.com/repository/spring-plugin/' }
		maven {
			url "https://plugins.gradle.org/m2/"
		}
		mavenCentral()
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:3.0.4")
		classpath "io.spring.gradle:dependency-management-plugin:1.1.0.RELEASE"
	}
}

plugins {
	id 'java'
}

apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"

 

아래 링크 참조 : 

https://da2uns2.tistory.com/entry/Spring-Boot-Plugin-id-orgspringframeworkboot-version-256-was-not-found-%EC%98%A4%EB%A5%98-%ED%95%B4%EA%B2%B0%ED%95%98%EA%B8%B0

 

[Spring Boot] Plugin [id: 'org.springframework.boot', version: '2.5.6'] was not found 오류 해결하기

Build file 'C:\Users\{유저네임}\Downloads\demo\demo\build.gradle' line: 2 Plugin [id: 'org.springframework.boot', version: '2.5.6'] was not found in any of the following sources: * Try: Run with --info or --debug option to get more log output. Run with

da2uns2.tistory.com

 

728x90
반응형