Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 从github中拉出apache beam编译错误_Maven_Apache Beam - Fatal编程技术网

Maven 从github中拉出apache beam编译错误

Maven 从github中拉出apache beam编译错误,maven,apache-beam,Maven,Apache Beam,我是Apache beam新手,我从github下载最新的源代码,并在路径下编译runner模块: ../beam/runner 使用命令:mvn package,它会像这样打印异常: ApacheBeam::Runners::核心构造Java。。。失败 有人对此有什么想法吗?谢谢 我将编译路径更改为主路径后,每个模块都编译成功。@Balajee Venkatesh 以下是我的编译步骤: 光驱 mvn编译 等待编译完成 我第一次执行mvn compile命令并遇到上面显示的异常是在pa

我是Apache beam新手,我从github下载最新的源代码,并在路径下编译runner模块:

../beam/runner
使用命令:mvn package,它会像这样打印异常:


ApacheBeam::Runners::核心构造Java。。。失败


有人对此有什么想法吗?谢谢

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

@Balajee Venkatesh 以下是我的编译步骤:

  • 光驱
  • mvn编译
  • 等待编译完成
  • 我第一次执行mvn compile命令并遇到上面显示的异常是在path beam master/runners下。在我将编译路径更改为beam master之后,一切都很顺利

    我可以问一下,您是否正在尝试编译整个项目以将其加载到IDE中? 如果是这样,我建议将IDEA与“File”->“import from existing source”一起使用,而不是执行“mvn compile”命令

    如果您尝试使用IDEA导入beam,只需在${project_loc:beam parent/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>-->
    

    如何更改编译路径?你能让我准确地理解吗?在从GitHub安装最新的ApacheBeam项目时,我也面临类似的问题@kylinHi,在我将编译路径更改为./runners父路径后,我的编译路径第一次位于./runners/下,每个模块都编译成功。您是如何更改编译路径的?如果您能分享任何支持性的步骤或快照,我将感到非常荣幸。这是您正在谈论的
    ${project\u loc:beam parent/runners}
    ?在设置运行配置时,我使用与基本目录相同的目录。
      <!-- 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>