Hi all,
while trying to do a clean install ( mvn package from [dspace-source] ) of
DSpace 6 on a Windows machine, I get a build failed error messages:
- failed to execute goal org.codehaus.mojo.
- cannot run program "git"
Do I need to install "git" on this machine?
Using Oracle java 1.8 and Maven 3.3.3
downloading into a newly created maven repository
download of codehaus seems fine and directories are present in m2 directory
kind regards,
Francis Brouns
[ERROR] Failed to execute goal
org.codehaus.mojo:buildnumber-maven-plugin:1.4:cr
eate (default) on project dspace-api: Cannot get the revision information
from t
he scm repository :
[ERROR] Exception while executing SCM command. Error while executing
command. Er
ror while executing process. Cannot run program "git" (in directory "
dspace\dspace_6\dspace-6.0-src-release\dspace-api"): CreateProcess error=2,
Het
systeem kan het opgegeven bestand niet vinden
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal o
rg.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project
dspace
-api: Cannot get the revision information from the scm repository :
Exception while executing SCM command.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot get the
revisi
on information from the scm repository :
Exception while executing SCM command.
at
org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:685)
at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:397)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
... 20 more
Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM
comm
and.
at
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.
java:63)
at
org.apache.maven.scm.provider.git.AbstractGitScmProvider.executeComma
nd(AbstractGitScmProvider.java:291)
at
org.apache.maven.scm.provider.git.AbstractGitScmProvider.info(Abstrac
tGitScmProvider.java:312)
at
org.codehaus.mojo.build.AbstractScmMojo.info(AbstractScmMojo.java:284
)
at
org.codehaus.mojo.build.AbstractScmMojo.getScmRevision(AbstractScmMoj
o.java:293)
at
org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:670)
... 23 more
Caused by: org.apache.maven.scm.ScmException: Error while executing command.
at
org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.
execute(GitCommandLineUtils.java:146)
at
org.apache.maven.scm.provider.git.gitexe.command.info.GitInfoCommand.
executeCommand(GitInfoCommand.java:57)
at
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.
java:59)
... 28 more
Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while
execut
ing process.
at
org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:675
)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLineAsCal
lable(CommandLineUtils.java:134)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(Comm
andLineUtils.java:105)
at
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(Comm
andLineUtils.java:74)
at
org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.
execute(GitCommandLineUtils.java:142)
... 30 more
Caused by: java.io.IOException: Cannot run program "git" (in directory
"dspace\dspace_6\dspace-6.0-src-release\dspace-api"): CreateProcess
error=2, H
et systeem kan het opgegeven bestand niet vinden
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at
org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:670
)
... 34 more
Caused by: java.io.IOException: CreateProcess error=2, Het systeem kan het
opgeg
even bestand niet vinden
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 36 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please rea
d the following articles:
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.