I'm trying to run OpenOLAT LMS Project (an Open Source Learning Platform written in Java) from source
我正试图从源代码运行OpenOLAT LMS Project(一个用Java编写的开源学习平台)
but I got the following maven error in netbeans output and I can't build the project.
但我在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
and here's the full stack trace of errors when I run mvn -e clean install
这是我运行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
Any help is appreciated, thanks in advance.
任何帮助表示赞赏,提前谢谢。
1 个解决方案
#1
I have no problem with Maven version 3.1.1.
我对Maven 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.
注意,不需要运行mvn -e clean install,我们从不这样做。这将运行所有测试用例,包括需要在src / test / java / olat.local.properties和测试数据库环境中进行测试配置的Selenium测试。请阅读项目顶层的TESTING.README.LATEST,了解有关运行单元测试的更多信息。
So, to get started quickly just run mvn clean package
to build the war file or mvn eclipse:eclipse
if you want to run OpenOLAT in eclipse for development.
所以,要快速入门,只需运行mvn clean package来构建war文件或mvn eclipse:eclipse如果你想在eclipse中运行OpenOLAT进行开发。
Cheers Florian
#1
I have no problem with Maven version 3.1.1.
我对Maven 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.
注意,不需要运行mvn -e clean install,我们从不这样做。这将运行所有测试用例,包括需要在src / test / java / olat.local.properties和测试数据库环境中进行测试配置的Selenium测试。请阅读项目顶层的TESTING.README.LATEST,了解有关运行单元测试的更多信息。
So, to get started quickly just run mvn clean package
to build the war file or mvn eclipse:eclipse
if you want to run OpenOLAT in eclipse for development.
所以,要快速入门,只需运行mvn clean package来构建war文件或mvn eclipse:eclipse如果你想在eclipse中运行OpenOLAT进行开发。
Cheers Florian