ant 编译 nutch时出现
Could not load definitions from resource org/sonar/ant/antlib.xml
出现这个的原因是找不到对应的jar包
解决方法:
2.放入到 lib 文件夹下
3.修改 ivy/ivysettings.xml大概888行处, 为:
<!-- Define the Sonar task if this hasn't been done in a common script -->
<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
<classpath path="${ant.library.dir}" />
<classpath path="${mysql.library.dir}" />
<classpath><fileset dir="lib/" includes="sonar*.jar" /></classpath>
</taskdef>
4.重新执行ant