2012-07-07 65 views
1

我在安裝OpenNLP時遇到問題。我希望Stack的蜂巢式智慧能夠幫助我走出困境。我承認我不太熟悉Java擴展/插件,所以任何幫助將不勝感激。問題安裝OpenNLP

我已經安裝了Maven。當我運行mvn --version我收到以下:

Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) 
Maven home: /Users/[my_name]/apache-maven-3.0.4 
Java version: 1.6.0_33, vendor: Apple Inc. 
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 
Default locale: en_US, platform encoding: MacRoman 
OS name: "mac os x", version: "10.7.4", arch: "x86_64", family: "mac" 

當我去到OpenNLP目錄,/Users/[my_name]/apache-opennlp-1.5.2,並運行mvn clean install,我收到此錯誤:

[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.151s 
[INFO] Finished at: Sat Jul 07 12:53:54 EDT 2012 
[INFO] Final Memory: 2M/81M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/[my_name]/apache-opennlp-1.5.2). Please verify you invoked Maven from the correct directory. -> [Help 1] 
[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/MissingProjectException 

我不完全理解這個錯誤。如果有人能解釋我需要做什麼來解決它,我會非常感激。

亞當

回答

1

opennlp文件夾內執行命令:/Users/[my_name]/apache-opennlp-1.5.2/opennlp。欲瞭解更多詳情,請查閱building documentation

+0

謝謝!我很感激。 – 2012-07-08 20:27:49