maven-mvnd icon indicating copy to clipboard operation
maven-mvnd copied to clipboard

Path problems in git-for-windows bash

Open mkarg opened this issue 3 years ago • 1 comments

I am currently evaluating mvnd on Windows and found a strange path problem.

When executing mvn clean verify from CMD, PowerShell, or git-for-windows-bash, then I can build my sample project just fine.

When executing mvnd clean verify from CMD or PowerShell, then I still can build my sample project just fine (and, BTW, much faster).

But when ececuting mvnd clean verify from git-for-windows-bash, then apparently the buildnumber-maven-plugin is unable to find the git binary (which is in particularly weird as this is git-for-windows-bash actually!):

[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project jakarta.ws.rs-api: Cannot get the branch 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 "C:\Users\markus\git\jaxrs-api-master\jaxrs-api"): CreateProcess error=2, System cannot find the specified file

Is this a bug of mvnd or is there something the installation instructions are missing?

mkarg avatar May 14 '22 15:05 mkarg

Do you have a simple project to reproduce the problem ?

gnodet avatar Sep 08 '22 05:09 gnodet