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

江枫思渺然 提交于 2019-12-05 04:55:56

You need to use the latest maven-filtering plugin version. If the error is caused by a plugin who uses maven-filtering as implicit dependency you should declare its dependency(for example 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>

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

Julien Le Dem

This seems caused by a maven bug with Java 8:

[MSHARED-319] Filtering throws NPE when using JDK8

A workaround is using Java 7.

Please refer the following URL: https://www.mail-archive.com/dev@parquet.apache.org/msg00967.html

I had the same error in building Apache Parquet from 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)

Using the following command will do.

mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true -Dsource.skip=true
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!