티스토리 뷰

GradleWrapperMain Error

 

오래만에 더 이상 개발하지 않고 유지 관리 중인 Hystrix Dashboard를 실행하려다 아래와 같은 오류가 발생했습니다.

]$ ./gradlew jettyRun

오류: 기본 클래스 org.gradle.wrapper.GradleWrapperMain을(를) 찾거나 로드할 수 없습니다.

 

gradle 프로젝트인데 gradle-wrapper.jar 파일이 보이지 않습니다.

]$ ls -al gradle/wrapper/

gradle-wrapper.properties

 

아래와 같이 gradle wrap 명령어를 실행합니다. gradle이 설치되어 있지 않으면 brew로 설치하세요

]$ brew install gradle
]$ gradle wrap

This version of the JMH Gradle plugin requires Gradle 5.5+. Please upgrade Gradle or use an older version of the plugin.

 

산 너머 산이네요.....gradle upgrade를 해주고 다시 실행합니다..

]$ gradle -v

------------------------------------------------------------
Gradle 5.2.1
------------------------------------------------------------

Build time:   2019-02-08 19:00:10 UTC
Revision:     f02764e074c32ee8851a4e1877dd1fea8ffb7183

Kotlin DSL:   1.1.3
Kotlin:       1.3.20
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          1.8.0_262 (Azul Systems, Inc. 25.262-b18)
OS:           Mac OS X 10.15.6 x86_64

]$ brew upgrade gradle
]$ gradle wrap
]$ ./gradlew jettyRun

 

또 아래와 같은 오류가 납니다.

An exception occurred applying plugin request [id:'me.champeau.gradle.jmh' , version: '0.3.1']

> Could not create task '> Failed to apply plugin [id 'me.champeau.gradle.jmh']

 

혹시 몰라 최신버전인 0.5.1로 업그레이드 해줍니다.

계속 아래와 같은 오류가 발생하네요 왜 이런건지..... 무리하지 않고 그냥 docker로 실행합니다.

> Configure project :
Inferred project: hystrix-dashboard, version: 0.1.0-SNAPSHOT
Exception in thread "Thread-1900" java.lang.IllegalStateException: The configuration :runtimeClasspath was resolved from a thread not managed by Gradle.
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater(DefaultConfiguration.java:563)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access$1800(DefaultConfiguration.java:142)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getSelectedArtifacts(DefaultConfiguration.java:1259)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.visitArtifacts(DefaultConfiguration.java:1250)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.visitContents(DefaultConfiguration.java:1246)

 

아래 명령어로 실행합니다.

docker run -d -p 8080:9002 --name hystrix-dashboard mlabouardy/hystrix-dashboard:latest

Go: http://localhost:8080/hystrix

 

hystrix dashboard 보기 힘드네요 ^^;;;

 

참고

http://github.com/mlabouardy/hystrix-dashboard-docker

반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함