构建失败 - Apache Parquet-MR 源代码(mvn 安装失败)

Build failure - Apache Parquet-MR source (mvn install failure)

我在尝试执行 "mvn clean install" 以构建从 https://github.com/apache/parquet-mr

获得的 parquet-mr 源代码时出现以下错误
[INFO] Storing buildScmBranch: UNKNOWN
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ parquet-generator ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Parquet MR ................................. SUCCESS [1.494s]
[INFO] Apache Parquet Generator .......................... FAILURE [0.064s]
[INFO] Apache Parquet Common ............................. SKIPPED
[INFO] Apache Parquet Encodings .......................... SKIPPED
[INFO] Apache Parquet Column ............................. SKIPPED
[INFO] Apache Parquet Jackson ............................ SKIPPED
[INFO] Apache Parquet Hadoop ............................. SKIPPED
[INFO] Apache Parquet Avro ............................... SKIPPED
[INFO] Apache Parquet Benchmarks ......................... SKIPPED
[INFO] Apache Parquet Pig ................................ SKIPPED
[INFO] Apache Parquet Thrift ............................. SKIPPED
[INFO] Apache Parquet Cascading .......................... SKIPPED
[INFO] Apache Parquet Pig Bundle ......................... SKIPPED
[INFO] Apache Parquet Protobuf ........................... SKIPPED
[INFO] Apache Parquet Scala .............................. SKIPPED
[INFO] Apache Parquet Scrooge ............................ SKIPPED
[INFO] Apache Parquet Hadoop Bundle ...................... SKIPPED
[INFO] Apache Parquet Hive ............................... SKIPPED
[INFO] Apache Parquet Hive Binding Parent ................ SKIPPED
[INFO] Apache Parquet Hive Binding Interface ............. SKIPPED
[INFO] Apache Parquet Hive 0.10 Binding .................. SKIPPED
[INFO] Apache Parquet Hive 0.12 Binding .................. SKIPPED
[INFO] Apache Parquet Hive Binding Factory ............... SKIPPED
[INFO] Apache Parquet Hive Binding Bundle ................ SKIPPED
[INFO] Apache Parquet Hive Storage Handler ............... SKIPPED
[INFO] Apache Parquet Hive Bundle ........................ SKIPPED
[INFO] Apache Parquet Tools .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.826s
[INFO] Finished at: Sun Jul 05 15:55:33 IST 2015
[INFO] Final Memory: 25M/365M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project parquet-generator: Error rendering velocity resource. NullPointerException -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :parquet-generator

"mvn --version" 是:

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 20:52:22+0530)
Maven home: /Users/.../maven/apache-maven-3.1.1
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.4", arch: "x86_64", family: "mac"

有人可以指导我吗?非常感谢对此的任何帮助。 谢谢!

使用以下命令即可。

mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true -Dsource.skip=true

这似乎是由 Java 8:

的 maven 错误引起的

[MSHARED-319] Filtering throws NPE when using JDK8

解决方法是使用 Java 7.

请参考以下内容URL: https://www.mail-archive.com/dev@parquet.apache.org/msg00967.html

我在从 https://github.com/apache/parquet-mr, but 1.8.0rc1 was successfully built(https://github.com/apache/parquet-mr/archive/parquet-1.8.0rc1.zip)

构建 Apache Parquet 时遇到了同样的错误

您需要使用最新版本的maven-filtering插件。如果错误是由使用 maven-filtering 作为隐式依赖项的插件引起的,您应该声明其依赖项(例如 maven-remote-resources-plugin:

         <pluginManagement>
         <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-remote-resources-plugin</artifactId>
            <version>1.5</version>
            <dependencies>
              <dependency>
                <groupId>org.apache.maven.shared</groupId>
                <artifactId>maven-filtering</artifactId>
                <version>1.2</version>
              </dependency>
            </dependencies>
         </plugin>
         </plugins>
         </pluginManagement>

来源http://tomee-openejb.979440.n4.nabble.com/Java-8-and-possible-TomEE-1-7-0-td4668490i20.html