2016-06-01 2 views
0

IntelliJ IDEA를 사용하여 헤론 프로젝트 (또는 기존의 폭풍 프로젝트를 포트)를 시작하려고하지만 불행히도 작동하지 못합니다. 받는다는 컴파일과 같은 (도움이되지 않는 라이브러리 항아리를 추가하는 동안 나는 upgrade from storm에 있지만 문서를 기반으로 POM.xml 파일을 변경 한 후 Heron Docs의 모든 제안 된 지침을 테스트 한intellij를 사용하여 트위터 헤론 프로젝트를 만드는 올바른 방법

, 난 기본 헤론 클래스와 메소드에서 cannot find symbol의 무리를 얻을 수 폭풍우에 익숙하다).

나는 또한 IntelliJ에 프로젝트를 만들기 위해 setup-intellij.sh 스크립트를 사용하려하지만 불행히도 그것은 오류 중지 :

null failed: _pex failed: error executing command 
bazel-out/local_linux-fastbuild/bin/3rdparty/pex/_pex --entry-point heron.shell.src.python.main bazel-out/local_linux-fastbuild/bin/heron/shell/src/python/heron-shell.pex ... 
(remaining 1 argument(s) skipped) 

내가하게 IntelliJ IDEA를 사용하여 작업 프로젝트를 생성 할 수있는 가장 쉬운 방법이 무엇인지 궁금하네요.

intelliJ에 스톰 라이브러리와 헤론 라이브러리를 추가해야합니까? 필요한 라이브러리를 어떻게 첨부하여 올바르게 컴파일 할 수 있습니까?

의견을 보내 주시면 감사하겠습니다.

답변

1

com.twitter.heron.api.* 대신 backtype.storm.*을 사용하여 클래스를 가져옵니다. 이 패키지는 모두 heron 라이브러리에 있습니다.

<dependency> 
     <groupId>com.twitter.heron</groupId> 
     <artifactId>heron-storm</artifactId> 
     <version>0.14.0</version> 
    </dependency> 
1

이 IntellJ, here에서 실행중인 헤론 프로젝트가 : 그냥 다음 종속성을 추가해야합니다.
pom.xml의 콘텐츠는 다음과 같습니다.

<groupId>io.streaml.heron.streamlet</groupId> 
    <artifactId>heron-java-streamlet-api-example</artifactId> 
    <version>latest</version> 

    <properties> 
     <maven.compiler.source>1.8</maven.compiler.source> 
     <maven.compiler.target>1.8</maven.compiler.target> 
     <heron.version>0.17.2</heron.version> 
    </properties> 

    <dependencies> 
     <dependency> 
      <groupId>com.twitter.heron</groupId> 
      <artifactId>heron-api</artifactId> 
      <version>${heron.version}</version> 
     </dependency> 
    </dependencies> 

    <build> 
     <plugins> 
      <plugin> 
       <artifactId>maven-assembly-plugin</artifactId> 
       <configuration> 
        <descriptorRefs> 
         <descriptorRef>jar-with-dependencies</descriptorRef> 
        </descriptorRefs> 
        <archive> 
         <manifest> 
          <mainClass></mainClass> 
         </manifest> 
        </archive> 
       </configuration> 
       <executions> 
        <execution> 
         <id>make-assembly</id> 
         <phase>package</phase> 
         <goals> 
          <goal>single</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 
     </plugins> 
    </build>