我有一个项目是从另一个小组开发的,并使用旧版本的Giraph。
该项目基于Giraph项目本身;项目结构和文件与Giraph完全相同,只是在giraph-examples中定义了更复杂的map-reduce图操作的一些.java源。由于该项目是Giraph项目的扩展,Maven用于编译和打包此项目,这也是Giraph项目的构建工具。
我无法找到这个项目完全基于Giraph的版本,但我发现编译这个项目需要0.2-SNAPSHOP的giraph-parent,而且它很老。
目前的问题是,当我尝试进行mvn验证时出现错误; 屏幕上打印的mvn消息如下:
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
[INFO] Reactor Build Order :
[INFO]
[INFO] Apache Giraph Parent
[INFO] Apache Giraph Core
[INFO] Apache Giraph Hive I/O
[INFO] Apache Giraph Examples
[INFO] Apache Giraph Accumulo I/O
[INFO] Apache Giraph HBase I/O
[INFO] Apache Giraph HCaatalog I/O
[INFO]
[INFO] -------------------------------------------------------------------------
[INFO] Building apache Giraph Parent 0.2-SNAPSHOP
[INFO] -------------------------------------------------------------------------
[INFO]
[INFO] --- mavanagaiata:0.4.1:branch (git-commit) @ giraph-parent ---
[INFO] -------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Giraph Parent .................................... FAILURE [0.579s]
[INFO] Apache Giraph Core ...................................... SKIPPED
[INFO] Apache Giraph Hive I/O .................................. SKIPPED
[INFO] Apache Giraph Examples .................................. SKIPPED
[INFO] Apache Giraph Accumulo I/O .............................. SKIPPED
[INFO] Apache Giraph HBase I/O ................................. SKIPPED
[INFO] Apache Giraph HCatalog I/O .............................. SKIPPED
[INFO] -------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] -------------------------------------------------------------------------
[INFO] Total time: 1.485s
[INFO] Finished at: Fri May 30 12.49.32 KST 2014
[INFO] Final Memory: 5M/15M
[INFO] -------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.koraktor:mavanagaiata:0.4.1:branch (git-commit) on project giraph-parent: Unable to initialize Mojo: the gitDir /home/hduser/subgraphlisting/.git does not exist -> [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
此外,我可以在相同的环境中使用Maven成功编译/打包最近的Giraph(来自官方主页)。 错误消息说我的项目文件夹中没有.git文件夹,但只有.svn文件夹。 有人可以准确找出这个错误的原因吗?
谢谢
答案 0 :(得分:0)
mavanagaiata
是一个maven插件,它将git提交信息添加到构建中,以便您以后可以将工件追溯到特定修订版。如果您不是从git存储库内部构建,则需要禁用此功能。您可以通过将-Dmavanagaiata.skipNoGit=true
附加到mvn
命令执行来临时执行此操作。
可以在the plug-in website上找到更完整的插件文档。