Hi,

I am compiling the Graylog 2.0 on windows 7 using eclipse. I am facing the  
issue related to "Git" as follows

Failed to execute goal 
org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project 
graylog2-server: Cannot get the revision information from the scm 
repository :
[ERROR] Exception while executing SCM command. Error while executing 
command. Error while executing process. Cannot run program "git" (in 
directory "D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\graylog2-server"): CreateProcess error=2, The 
system cannot find the file specified

After facing this issue for the first time I installed Git 2.9.0 on my 
machine but still I am getting the same error. I have also added the 
following to the system variable "C:\Program Files\Git\cmd;C:\Program 
Files\Git\bin".


The full track trace is as follows.

[INFO] Scanning for projects...
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Graylog
[INFO] graylog2-server
[INFO] integration-tests
[INFO] 
[INFO] Using the builder 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
 
with a thread count of 1
[INFO]                                                                         

[INFO] 
------------------------------------------------------------------------
[INFO] Building Graylog 2.0.1-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ graylog2-parent 
---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ 
graylog2-parent ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.10:parse-version (parse-version) @ 
graylog2-parent ---
[INFO] 
[INFO] >>> maven-source-plugin:3.0.0:jar (attach-sources) @ graylog2-parent 
>>>
[INFO] 
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ 
graylog2-parent ---
[INFO] 
[INFO] <<< maven-source-plugin:3.0.0:jar (attach-sources) @ graylog2-parent 
<<<
[INFO] 
[INFO] --- maven-source-plugin:3.0.0:jar (attach-sources) @ graylog2-parent 
---
[INFO] 
[INFO] --- maven-javadoc-plugin:2.10.3:jar (attach-javadocs) @ 
graylog2-parent ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable 
package
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
graylog2-parent ---
[INFO] Installing D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\pom.xml to 
C:\Users\anants\.m2\repository\org\graylog2\graylog2-parent\2.0.1-SNAPSHOT\graylog2-parent-2.0.1-SNAPSHOT.pom
[INFO]                                                                         

[INFO] 
------------------------------------------------------------------------
[INFO] Building graylog2-server 2.0.1-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ graylog2-server 
---
[INFO] Deleting D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\graylog2-server\target
[INFO] Deleting D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\graylog2-web-interface (includes = [build/**/*, 
node_modules/**/*], excludes = [])
[INFO] 
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ 
graylog2-server ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @ graylog2-server 
---
[INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
[INFO] Working directory: D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\graylog2-server
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Graylog ........................................... SUCCESS [ 13.072 
s]
[INFO] graylog2-server ................................... FAILURE [02:26 
min]
[INFO] integration-tests ................................. SKIPPED
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 02:39 min
[INFO] Finished at: 2016-06-30T20:09:02+05:30
[INFO] Final Memory: 33M/261M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project 
graylog2-server: Cannot get the revision information from the scm 
repository :
[ERROR] Exception while executing SCM command. Error while executing 
command. Error while executing process. Cannot run program "git" (in 
directory "D:\Anant\Graylog 2.0 GA\Graylog 2.0 GA Source 
code\graylog2-server-2.0\graylog2-server"): CreateProcess error=2, The 
system cannot find the file specified
[ERROR] -> [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 :graylog2-server

Please advise.


Thanks in advance.

Regards,
Anant.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/22babbc9-e0c7-4000-9b10-dd7de49d2e7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to