2016-06-01 10 views
0

IntelliJ IDEAを使用してHeronプロジェクト(または既存の嵐プロジェクトを移植)を開始しようとしていますが、残念ながらそれを動作させることはできません。intellijを使用してtwitter heronプロジェクトを作成する正しい方法

のMavenでコンパイルし、ライブラリJARを追加しているときに助けにはならない、私はupgrade from stormHeron Docsで提案されたすべての指示をテストしているが、文書に基づいてPOM.xmlファイルを変更した後、私は基本的なサギのクラスとメソッドから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には、嵐の図書館とHeronライブラリを追加する必要がありますか?どのように正しくコンパイルするために必要なライブラリを添付することができますか?

ご迷惑をおかけして申し訳ございません。

答えて

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> 
関連する問題