我在尝试执行“mvn clean install”以获取从https://github.com/apache/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"
有人可以指导我吗?对此的任何帮助都非常感谢。 谢谢!
答案 0 :(得分:5)
答案 1 :(得分:3)
您需要使用最新的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
答案 2 :(得分:0)
请参阅以下网址: https://www.mail-archive.com/dev@parquet.apache.org/msg00967.html
我从https://github.com/apache/parquet-mr构建Apache Parquet时遇到了同样的错误,但1.8.0rc1已成功构建(https://github.com/apache/parquet-mr/archive/parquet-1.8.0rc1.zip)
答案 3 :(得分:-2)
使用以下命令即可。
mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true -Dsource.skip=true