Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2-incubating
-
Building from a downloaded source tree, without git installed
Description
When we recently added the Koraktor Maven plugin to generate jar file manifests, we introduced a dependency on git. When building a source tree that is not managed by git, we get the following error:
[INFO] Building trafodion-sql 1.2.0 ##(SQL)
[ERROR] Failed to execute goal com.github.koraktor:mavanagaiata:0.7.2:commit (git-commit) on project trafodion-sql: Unable to initialize Git repository: The GIT_DIR /home/centos/apache-trafodion-1.2.0-incubating/core/sqf/../../.git does not exist -> [Help 1] ##(SQL)
Other Maven projects are affected as well.
We should either handle the absence of git in the plugin, or remove the plugin.
While we work on this, we could also fix the error in the build-scripts/build.branch where we get an error when svn is not installed. That one does not cause the build to fail, so it is less of an issue.