2015-05-12 28 views
0

我試圖從源頭Maven的MOJO執行,同時建立

運行OpenOLAT LMS Project(一個開源學習平臺用Java編寫的)失敗,但我得到了在NetBeans輸出以下Maven的錯誤,我不能構建項目。

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) 
-> [Help 1] 

To see the full stack trace of the errors, re-run Maven with the -e switch. 
Re-run Maven using the -X switch to enable full debug logging. 

For more information about the errors and possible solutions, please read the following articles: 
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

,這裏是錯誤的完整堆棧跟蹤,當我運行mvn -e clean install

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 

任何幫助表示讚賞,謝謝提前。

+0

首先使用[buildnumber-行家-插件]的UPTODATE版本(http://mojo.codehaus.org/buildnumber-maven-plugin/)還嘗試在命令行和此類處決* *不在您的IDE中。 – khmarbaise

+0

實際上,從命令行運行mvn會輸出相同的錯誤。 我試圖運行它,我應該更改在POM buildnumber版本? –

+0

一個完整的pom也會有所幫助。 – khmarbaise

回答

1

我對Maven版本3.1.1沒有問題。

注意不需要運行mvn -e clean install,我們從來不這樣做。這將運行所有測試用例,包括需要在src/test/java/olat.local.properties中測試配置的Selenium測試以及測試數據庫環境。請閱讀項目頂層的TESTING.README.LATEST,以瞭解有關運行單元測試的更多信息。

因此,如果您想在eclipse中運行OpenOLAT進行開發,那麼要快速開始運行mvn clean package來構建war文件或mvn eclipse:eclipse

乾杯弗洛裏安

相關問題