0

我有一个项目是从另一个小组开发的,并使用旧版本的 Giraph。

该项目是基于 Giraph 项目本身制作的;项目结构和文件与 Giraph 完全相同,只是在 giraph-examples 中定义了一些用于更复杂的 map-reduce 图操作的 .java 源。由于该项目是 Giraph 项目的扩展,因此使用 Maven 编译和打包该项目,这也是 Giraph 项目的构建工具。

我找不到这个项目究竟基于什么版本的 Giraph,但我可以发现编译这个项目需要 0.2-SNAPSHOP 的 giraph-parent,而且它已经很老了。

当前的问题是我尝试 mvn verify 时出错;屏幕上打印的 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 文件夹。有人能准确地找出这个错误的原因吗?

谢谢

4

1 回答 1

0

mavanagaiata是一个 Maven 插件,它将 git 提交信息添加到构建中,以便您以后可以将您的工件追溯到特定的修订版。如果您不是从 git 存储库内部构建,则需要禁用此功能。-Dmavanagaiata.skipNoGit=true您可以通过附加到mvn命令执行来临时执行此操作。

更完整的插件文档可以在插件网站上找到

于 2014-07-28T17:47:14.250 回答