View Issue Details

IDProjectCategoryView StatusLast Update
0006728CentOS-6antpublic2013-11-08 14:43
Reporterivan.varga.83.os Assigned To 
Status newResolutionopen 
OSCentOSOS Version6.4 (Final) 
Product Version6.4 
Summary0006728: Ivy not working with rpm install of ant
DescriptionAfter installing ant and apache-ivy packages with yum, basic ivy example fails, but...

If I set up ANT_HOME, create symlink to ivy.jar in /usr/share/ant/lib/ and run ant --noconfig, it actually works.

[root@localhost e1]# env | grep ANT_HOME

[root@localhost e1]# ll /usr/share/ant/lib/
total 8
drwxr-xr-x 4 root root 4096 Jun 17 13:42 ..
lrwxrwxrwx 1 root root 27 Jun 17 13:42 ant-launcher.jar -> ../../java/ant-launcher.jar
lrwxrwxrwx 1 root root 18 Jun 17 13:42 ant.jar -> ../../java/ant.jar
lrwxrwxrwx 1 root root 28 Jun 17 13:42 ant-bootstrap.jar -> ../../java/ant-bootstrap.jar
lrwxrwxrwx 1 root root 29 Jun 17 13:42 ant-nodeps.jar -> ../../java/ant/ant-nodeps.jar
lrwxrwxrwx 1 root root 27 Oct 17 21:21 ant-trax.jar -> ../../java/ant/ant-trax.jar
lrwxrwxrwx 1 root root 18 Nov 7 11:56 ivy.jar -> ../../java/ivy.jar
drwxr-xr-x 2 root root 4096 Nov 7 11:56 .

Installed Packages
Name : ant
Arch : x86_64
Version : 1.7.1
Release : 13.el6
Size : 7.5 M
Repo : installed
From repo : base
Summary : Ant build tool for java
License : ASL 2.0 and W3C
Description : Ant is a platform-independent build tool for java. It's used by apache
: jakarta and xml projects.

Installed Packages
Name : apache-ivy
Arch : noarch
Version : 2.1.0
Release : 1.el6
Size : 986 k
Repo : installed
From repo : epel
Summary : Java-based dependency manager
License : ASL 2.0
Description : Apache Ivy is a tool for managing (recording, tracking, resolving and
: reporting) project dependencies. It is designed as process agnostic and is
: not tied to any methodology or structure. while available as a standalone
: tool, Apache Ivy works particularly well with Apache Ant providing a number
: of powerful Ant tasks ranging from dependency resolution to dependency
: reporting and publication.

[root@localhost e1]# ant --execdebug
exec "/usr/java/jdk1.7.0_17/bin/java" -classpath "/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/java/jdk1.7.0_17/lib/tools.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" -cp ""
Buildfile: build.xml
/root/ivy-workspace/e1/build.xml:3: Problem: failed to create task or type antlib:org.apache.ivy.ant:settings
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-a directory added on the command line with the -lib argument
Total time: 0 seconds

[root@localhost e1]# ant --execdebug --noconfig
exec "/usr/java/jdk1.7.0_17/jre/bin/java" -classpath "/usr/share/ant/lib/ant-launcher.jar" -Dant.home="/usr/share/ant" -Dant.library.dir="/usr/share/ant/lib" -cp ""
Buildfile: build.xml
Total time: 0 seconds

With --noconfig -classpath is resolved with "/usr/share/ant/lib/ant-launcher.jar".
Steps To Reproduce1. Execute: yum install ant
2. Execute: yum install apache-ivy
3. Create build.xml with following content:
<project name="test ivy" default="test" xmlns:ivy="antlib:org.apache.ivy.ant">
        <target name="test" description="Test ivy installation">
                <ivy:settings />
4. Execute: ant
TagsNo tags attached.




2013-11-08 14:41

reporter   ~0018311

Added bug report to:


2013-11-08 14:43

reporter   ~0018312

There is also one on Apache JIRA:

Issue History

Date Modified Username Field Change
2013-11-08 14:26 ivan.varga.83.os New Issue
2013-11-08 14:41 ivan.varga.83.os Note Added: 0018311
2013-11-08 14:43 ivan.varga.83.os Note Added: 0018312