Nutch Trunk(2.0) 编译

今天下载了Nutch的Trunk版本,调用ant编译的时候无法编译通过

[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: org.gora#gora-core;0.1: not found
[ivy:resolve] :: org.gora#gora-sql;0.1: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::

从错误可以看出,缺少gora-core相关的包

google以后发现,gora项目仍然在孵化器中,所以在http://repo1.maven.org/maven2/中无法找到gora-core相关的包,这个包需要我们手动安装到本地库中

从http://incubator.apache.org/gora/中checkout最新的trunk版本,ant的时候继续报错
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve] :: com.sun.jersey#jersey-core;1.4: not found
[ivy:resolve] :: com.sun.jersey#jersey-json;1.4: not found
[ivy:resolve] :: com.sun.jersey#jersey-server;1.4: not found
[ivy:resolve] ::::::::::::::::::::::::::::::::::::::::::::::
浏览maven2库,发现确实没有这几个包(被误删?还是版权问题下了?)
google了一个包含这三个包的库:http://download.java.net/maven/2/
在gora/ivy/ivysetting.xml中添加了
  <property name="repo.java.net"
    value="http://download.java.net/maven/2/"
    override="false"/>
ant编译通过
重新ant编译nutch,仍然找不到对应的gora相关的包
进到~/.ivy/local 里面看了一下,发现gora相关的版本号都是0.1-incubating
将gora/build.xml 和gora/build-common.xml中的version都修改为0.1,重新ant编译,gora包部署完毕

再回到nutch下面ant,build通过!!


粗略看了一下,gora应该是用于将nutch爬下来的网页Mapping到HBase或者DB中的ORM框架,值得关注一下~~

你可能感兴趣的:(maven,ant,Google,hbase,sun)