[已解决]CentOS 5.5 apache ivy 安装后ant不能找到ivy task
时间:2010-08-11
来源:互联网
本帖最后由 可可火山 于 2010-08-13 12:10 编辑
尝试下载了最新的ant 1.8,ivy运行正常,可能是CentOS 源里的ant有些配置上的区别。
最近在学习hadoop,hadoop: the definiteve guide 一书的例子代码里用到ivy,我通过下载解压把ivy.jar放到了ANT_HOME/lib下,照理应该可以work了吧。
ant是1.65来自yum源。
现在报
htdg-examples-0.1.1/build.xml:77: Could not create task or type of type: antlib:org.apache.ivy.ant:retrieve.
以下是我的错误信息:
复制代码
尝试下载了最新的ant 1.8,ivy运行正常,可能是CentOS 源里的ant有些配置上的区别。
最近在学习hadoop,hadoop: the definiteve guide 一书的例子代码里用到ivy,我通过下载解压把ivy.jar放到了ANT_HOME/lib下,照理应该可以work了吧。
ant是1.65来自yum源。
现在报
htdg-examples-0.1.1/build.xml:77: Could not create task or type of type: antlib:org.apache.ivy.ant:retrieve.
以下是我的错误信息:
- [user@/opt/workspace/hadoopdefiniteveguide/htdg-examples-0.1.1 (0)]$ ls /usr/share/ant/lib/
- ivy.jar jsch.jar
- [user@/opt/workspace/hadoopdefiniteveguide/htdg-examples-0.1.1 (0)]$ ant -version
- Apache Ant version 1.6.5 compiled on January 6 2007
- [user@/opt/workspace/hadoopdefiniteveguide/htdg-examples-0.1.1 (0)]$ java -version
- java version "1.6.0_20"
- Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
- Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
- [user@/opt/workspace/hadoopdefiniteveguide/htdg-examples-0.1.1 (0)]$ ant
- Buildfile: build.xml
-
- init:
-
- retrieve-dependencies:
-
- BUILD FAILED
- /opt/workspace/hadoopdefiniteveguide/htdg-examples-0.1.1/build.xml:77: Could not create task or type of type: antlib:org.apache.ivy.ant:retrieve.
-
- Ant could not find the task or a class this task relies upon.
-
- This is common and has a number of causes; the usual
- solutions are to read the manual pages then download and
- install needed JAR files, or fix the build file:
- - You have misspelt 'antlib:org.apache.ivy.ant:retrieve'.
- Fix: check your spelling.
- - The task needs an external JAR file to execute
- and this is not found at the right place in the classpath.
- Fix: check the documentation for dependencies.
- Fix: declare the task.
- - The task is an Ant optional task and the JAR file and/or libraries
- implementing the functionality were not found at the time you
- yourself built your installation of Ant from the Ant sources.
- Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
- task and make sure it contains more than merely a META-INF/MANIFEST.MF.
- If all it contains is the manifest, then rebuild Ant with the needed
- libraries present in ${ant.home}/lib/optional/ , or alternatively,
- download a pre-built release version from apache.org
- - The build file was written for a later version of Ant
- Fix: upgrade to at least the latest release version of Ant
- - The task is not an Ant core or optional task
- and needs to be declared using <taskdef>.
- - You are attempting to use a task defined using
- <presetdef> or <macrodef> but have spelt wrong or not
- defined it at the point of use
-
- Remember that for JAR files to be visible to Ant tasks implemented
- in ANT_HOME/lib, the files must be in the same directory or on the
- classpath
-
- Please neither file bug reports on this problem, nor email the
- Ant mailing lists, until all of these causes have been explored,
- as this is not an Ant bug.
-
- Total time: 1 second
作者: 可可火山 发布时间: 2010-08-11
学习。没有这么配置过。
作者: renxiao2003 发布时间: 2010-08-28
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28