maven MOJO Execution Failed while running mvn -e clean install

1,285 views
Skip to first unread message

aboud....@gmail.com

unread,
May 17, 2015, 11:35:55 AM5/17/15
to open...@googlegroups.com
Hello guys,

I'm trying to build OpenOLAT but I'm getting this error while running mvn -e clean install

aboud@E-Learning-06:~/NetBeansProjects/openolat$ mvn -e clean install
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenOLAT LMS 10.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ openolat-lms ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.2.0:hgchangeset (default) @ openolat-lms ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.378s
[INFO] Finished at: Sun May 17 11:59:25 EEST 2015
[INFO] Final Memory: 19M/298M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openolat.mojo:buildnumber-maven-plugin:1.2.0:hgchangeset (default) on project openolat-lms: Command failed.
[ERROR] EXECUTION FAILED
[ERROR] Execution of cmd : id failed with exit code: 127.
[ERROR] Working directory was:
[ERROR] /home/aboud/NetBeansProjects/openolat
[ERROR] Your Hg installation seems to be valid and complete.
[ERROR] Hg version: NA (OK)
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.openolat.mojo:buildnumber-maven-plugin:1.2.0:hgchangeset (default) on project openolat-lms: Command failed.
EXECUTION FAILED
  Execution of cmd : id failed with exit code: 127.
  Working directory was: 
    /home/aboud/NetBeansProjects/openolat
  Your Hg installation seems to be valid and complete.
    Hg version: NA (OK)


at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
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.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command failed.
EXECUTION FAILED
  Execution of cmd : id failed with exit code: 127.
  Working directory was: 
    /home/aboud/NetBeansProjects/openolat
  Your Hg installation seems to be valid and complete.
    Hg version: NA (OK)


at org.codehaus.mojo.build.HgChangeSetMojo.checkResult(HgChangeSetMojo.java:74)
at org.codehaus.mojo.build.HgChangeSetMojo.getChangeSet(HgChangeSetMojo.java:110)
at org.codehaus.mojo.build.HgChangeSetMojo.execute(HgChangeSetMojo.java:88)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
[ERROR] 
[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:

any help is appreciated, thanks in advance. 

Florian Gnägi

unread,
May 18, 2015, 3:11:22 AM5/18/15
to open...@googlegroups.com

I have no problem with Maven version 3.1.1.

Note there is no need to run mvn -e clean install, we never do it like this. This will run all the testcases including the Selenium tests which need a test configuration in src/test/java/olat.local.properties and test database environment. Please read the TESTING.README.LATEST at the top level of the project to learn more about running the unit tests. 

So, to get started quickly just run mvn clean package to build the war file or mvn eclipse:eclipseif you want to run OpenOLAT in eclipse for development. 

Cheers Florian


--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOLAT".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOLAT - infinite learning - http://www.openolat.org

---
You received this message because you are subscribed to the Google Groups "OpenOLAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

----------------------------------------------------------
professional services for the e-learning system OpenOLAT
 hosting - operating - support - development - consulting
----------------------------------------------------------

frentix  GmbH
Florian Gnägi, Geschäftsführer
Hardturmstrasse 76
CH-8005 Zürich, Switzerland

skype:gnaegi  twitter:gnaegi  xing:Florian_Gnaegi 
----------------------------------------------------------




Reply all
Reply to author
Forward
0 new messages