2017-09-25 130 views
0

我是新来的Apache梁,我从GitHub下载最新的源代码,并在路径编译亚军模块: ../beam/runners 用命令:MVN包,并将其打印这样的例外: enter image description here拉阿帕奇束编译错误

Apache Beam :: Runners :: Core Construction Java ... FAILURE

有没有人有这方面的一些想法?谢谢!

回答

0

当我将编译路径更改为主路径后,每个模块编译成功。

+0

如何改变编译路径?你能让我明白吗?我在从GitHub安装最新的Apache Beam项目时遇到了类似的问题。 @kylin –

+0

嗨,我的编译路径第一次在./runners/下,当我将编译路径改为./runners父路径后,每个模块编译成功。 – kylin

+0

你是如何改变编译路径的?如果您分享同样的支持步骤或快照,我会感到很荣幸。 –

1

@Balajee文卡塔斯 这里是我的编译步骤:

  1. CD波束主
  2. MVN编译
  3. 等待编译完成

我第一次执行MVN编译命令遇到了上面显示的例外是在路径梁主/跑步者。在我更改编译路径到beam-master之后,一切都很顺利。

我想问你是否试图编译整个项目,将它加载到你的IDE? 如果是这样,我建议使用IDEA'File' - >'从现有源导入'而不是执行'mvn compile'命令。

如果您尝试使用IDEA进口梁,你可以删除/注释错误消息在$ {project_loc:梁父/ pom.xml的},如:

<!-- <plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>versions-maven-plugin</artifactId> 
    <version>2.3</version> 
    <reportSets> 
     <reportSet> 
     <reports> 
      <report>dependency-updates-report</report> 
      <report>plugin-updates-report</report> 
     </reports> 
     </reportSet> 
    </reportSets> 
    </plugin>--> 

,并更换该Maven插件版本和你的mvn -version一样。

<!-- Rename the artifact produced by the Apache parent's 
     source release. --> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-assembly-plugin</artifactId> 
     <version>**3.3.3**</version> 
     <executions> 
     <execution> 
      <id>source-release-assembly</id> 
      <configuration> 
      <finalName>apache-beam-${project.version}</finalName> 
      </configuration> 
     </execution> 
     </executions> 
    </plugin> 

顺便说一下,我的maven版本是3.3.3。您还可以检查pom.xml的maven版本是否与您本地的mvn -version不兼容。

这里是我的MVN编译路径:

enter image description here