使用ant编译时错误:Specify at least one source--a file or resource
将命令环境切换到Nutch目录下,执行ant命令。出现如下错误:
Java代码
Buildfile:build.xml
init:
BUILDFAILED
/home/xp/nutch-1.2/build.xml:62:Specifyatleastonesource--afileorresource
collection.
Totaltime:0seconds
解决办法有两个:
(1).从SVN:http://svn.apache.org/viewvc/nutch/tags/release-1.2/conf/下载缺失的config/*.template文件。
(2).修改build.xml,去掉62-64行,让它不再需要template文件。
相关推荐
BitsPlayer 2020-05-29
roygbip 2020-02-16
BitsPlayer 2020-02-13
lrcoop 2020-02-03
chichichi0 2020-01-06
BitsPlayer 2019-12-19
BitsPlayer 2019-12-14
xueliangEmail 2013-07-22
cailianren 2010-04-15
wugang0 2019-11-09
lustdevil 2011-08-28
evilvoid 2008-04-17
leonranri 2019-11-05
leeccr 2019-10-31
evilvoid 2010-02-02