2014-09-18 120 views
1

我一直試圖在Ubuntu 14.04 LTS上構建Apache Mesos。我跑以下命令:構建Apache Mesos時出錯

1) cd mesos 
2) ./bootstrap 
3) mkdir build 
4) cd build 
5) ../configure 
6) make 

當我運行使我得到以下錯誤:

Building mesos-0.21.0.jar ... 
[INFO] Scanning for projects... 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project org.apache.mesos:mesos:0.21.0 (/home/eejya/mesos/build/src/java/mesos.pom) has 1 error 
[ERROR]  Non-parseable POM /home/eejya/.m2/repository/org/apache/apache/11/apache-11.pom: Expected root element 'project' but found 'HTML' (position: START_TAG seen <HTML>... @1:6) @ /home/eejya/.m2/repository/org/apache/apache/11/apache-11.pom, line 1, column 6 -> [Help 2] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[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: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException 
make[1]: *** [java/target/mesos-0.21.0.jar] Error 1 
make[1]: Leaving directory `/home/eejya/mesos/build/src' 
make: *** [all-recursive] Error 1 

我也試過,沒有任何目標運行命令MVN -e和我得到了以下錯誤消息:

[INFO] Error stacktraces are turned on. 
[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.195s 
[INFO] Finished at: Fri Sep 19 02:46:02 IST 2014 
[INFO] Final Memory: 5M/105M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] 
org.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. 
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:104) 
    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) 
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 

有人能指出這裏的問題嗎?

回答

3

看起來像你的apache-11.pom無效。打開並驗證內容。我開始於:

<?xml version="1.0" encoding="UTF-8"?> 
<!-- 
Apache License Blob 
--> 

<project xmlns="http://maven.apache.org/POM/4.0.0" ... 

它看起來像你有一個html文件,而不是(可能是一個404錯誤頁?)。如果是這樣,請嘗試刪除您的~/.m2/repository/org/apache/apache/11/目錄並再次運行make。構建過程應該拉下一個新的pom。

+0

謝謝!我的網址設置錯誤。 – eejs 2014-09-22 17:11:49