Java 将ApacheMahout导入eclipse
我正在尝试将Mahout导入mac上的eclipse。我已使用以下方式安装Apache Mahout:Java 将ApacheMahout导入eclipse,java,eclipse,maven,Java,Eclipse,Maven,我正在尝试将Mahout导入mac上的eclipse。我已使用以下方式安装Apache Mahout: $wget -c http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9.tar.gz $tar zxf mahout-distribution-0.9.tar.gz $cd mahout-distribution-0.9 $mvn eclipse:eclipse 当我运行最后一部分时,我得到错误: Goal re
$wget -c http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9.tar.gz
$tar zxf mahout-distribution-0.9.tar.gz
$cd mahout-distribution-0.9
$mvn eclipse:eclipse
当我运行最后一部分时,我得到错误:
Goal requires a project to execute but there is no POM in this directory
我需要在这个POM文件中输入哪些信息?您已经下载了
mahout-distribution-0.9.tar.gz
,其中将包含要拉入现有项目的.jar。因为它包含打包的.jars,所以不需要pom.xml。这与*-src
下载不同,后者包含Mahout项目的源代码,以及用于从源代码构建项目的pom.xml
我很确定您不希望从源代码构建,所以您需要一个现有的项目,然后将Mahout.jars引入该项目。如果您在Eclipse中创建一个Maven项目,那么可以使用pom.xml引入必要的文件,而无需直接下载它们