ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Chaney <>
Subject Problem with 'namespace' example
Date Thu, 20 Mar 2008 17:49:42 GMT

I'm a complete newbie to ivy and dependency management in general - I've 
googled for this problem and found nothing.

I'm using ant 1.7.0, ivy 2.0.0beta2 and jvm1.5

I'm trying to set up my own 'enterprise' repository to avoid too much 
dependency on maven. I've taken the example from the documentation - 
src/example/buid-a-ivy-repository and tweaked it slightly by removing 
the non-namespace targets and the 'basic.settings'

When I run  ant with the install target I get:

[ivy:install] :: installing hibernate#hibernate; ::
[ivy:install] :: resolving dependencies ::
[ivy:install]   found hibernate#hibernate; in libraries
[ivy:install]   found ehcache#ehcache;1.2.3 in libraries
[ivy:install]   found apache#commons-logging;1.0.4 in libraries
[ivy:install]   found apache#commons-collections;2.1 in libraries
[ivy:install]   found cglib#cglib;2.1_3 in libraries
[ivy:install]   found asm#asm;1.5.3 in libraries
[ivy:install]   found apache#commons-collections;2.1.1 in libraries
[ivy:install] java.text.ParseException: inconsistent module descriptor 
file found in 
bad organisation: expected='org.apache' found='apache';
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 
[ivy:install]   at 

When I go and look at the pom for .../apache/apache/4/apache-4.pom I 
find that it has:

<project xmlns="" xmlns:xsi=""

  <!-- Shared parent. Doesn't define a lot of things about Apache like general mailing
lists, but does
       define the settings common to all projects at Apache -->
  <name>The Apache Software Foundation</name>
    The Apache Software Foundation provides support for the Apache community of open-source
software projects.
    The Apache projects are characterized by a collaborative, consensus based development
process, an open and

In comparison with the other apache projects (eg commons) it seems that 
the groupId is org.apache and typically it would be just 'apache'. My 
understanding is that the namespace rules should convert groupId 
org.apache and artifactId apache to a filesystem location in my 
repository of something like:

(blah blah)/myrepository/apache/apache/ etc.

When I look at the namespace rules there is one which says:

            <rule> <!-- new apache projects -->
                    <src org="apache" />
                    <dest org="org.apache"/>
                    <src org="org.apache" />
                    <dest org="apache" />

So why isn't this one working?

If necessary I can put the build.xml and ivysettings.xml files up on the 
web. I've tried two different mirrors (maven itself and ibiblio).
The maven repository appears to have some other problems but as far as I 
can see the above problem is the only error with ibiblio.


Alan Chaney

View raw message