我在安装OpenNLP时遇到问题。我希望Stack的蜂巢头脑的光彩可以帮助我在这里。我承认我对使用Java扩展/插件不是很熟悉,所以任何帮助都会非常感激。
我已经安装了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
我不完全理解这个错误。如果有人能解释我需要做些什么来解决它,我会非常感激。
亚当
答案 0 :(得分:1)
从opennlp
文件夹中执行命令:/Users/[my_name]/apache-opennlp-1.5.2/opennlp
。有关详细信息,请查看building documentation。