[Elasticsearch] Intellij 에서 Latest Elasticsearch Import 시 Gradle 이슈

Elastic/Elasticsearch 2016. 2. 1. 23:27

일단 증상은 아래와 같은 에러가 발생을 해서 intellij 에서 clone 한 elasticsearch의 master 브랜치 import 가 안됩니다.

이게 저만 그런건지 환경의 문제 인건지 시간이 별로 없어서 확인을 끝까지 못했기 때문에 일단 기록 부터 합니다.

아래는 우회 하는 방법을 기록 했습니다.


[에러 메시지]

- build.gradle 에 아래와 같은 조건이 있습니다.

if (System.getProperty('idea.active') != null && ideaMarker.exists() == false) {

  throw new GradleException('You must run gradle idea from the root of elasticsearch before importing into IntelliJ')

}


[우회 방법]

- maven project로 구성된 다른 branch 를 checkout 받아 intellij로 import 합니다.

$ git checkout 2.2


: