Thanks for the response. I guess i'll have to go look for documentation on 'parents' -- didn't know about that. I guess i'm just missing something in this whole process that makes it seems so ridiculously complex. I want a bunch of jar files, and I know where to get them from. This whole dependency/parent thing just seems like overkill. Is it usually the case that you don't know what jars you need?

Perhaps for my situation, i'll just write an ant task that pulls the jars from the appropriate repos, which should be relatively trivial, and less likely to fail, or at least be more predictable.

Thanks for the help.
dave

Andrew Thorburn wrote:
Unfortunately, it's not a dependency - it's a parent. It may be
necessary to depend on Ant Parent first, then Ant, e.g.

<dependency org="org.apache.ant" name="ant-parent"
rev="${ant.version}" conf="*->*,!sources,!javadoc"/>
<dependency org="org.apache.ant" name="ant" rev="${ant.version}"
conf="*->*,!sources,!javadoc"/>

I'm not sure if that will fix it, but I've had issues with other
Apache Projects and their parents before... Mostly when trying to
apply namespace rules to the parent (it doesn't work).

- Andrew


On Mon, Apr 19, 2010 at 9:48 AM, Dave Brosius <[email protected]> wrote:
Greetings,
   I'm trying to introduce Ivy into a mature product where 3rdparty jars are
checked in to the scm. My first step is just to have ivy yank down all these
files, and then copy them into the locations where they currently exist,
that way the mult-project ant build won't need to know anything about ivy
(except for the first build step of pulling the files down). Once this is
working, I'll remove the jars from the scm, and then work on making the
build more ivy-like.

So to start, i've created an ivy.xml that specifies a transitive="false"
configuration, and have listed all the jars that are currently in my scm.

Many of the jars work fine, but a few have the following problem. For
instance here is a snippet from my ivy.xml

.....

<configurations>
  <conf name="default" transitive="false"/>
</configurations>
<dependencies>
  <dependency org="org.apache.ant" name="ant" rev="${ant.version}"
conf="*->*,!sources,!javadoc"/>
  ....
....
...


When run with ant -v

I get

[ivy:retrieve] == resolving dependencies
acme#3rdparty;work...@dbrosius->org.apache.ant#ant;1.7.1
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: found md file for org.apache.ant#ant;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom ...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.1/ant-1.7.1.pom
[ivy:retrieve]     [SUCCESSFUL ]
org.apache.ant#ant;1.7.1!ant.pom(pom.original) (606ms)
[ivy:retrieve] default: Checking cache for: dependency:
org.apache.ant#ant-parent;1.7.1 {}
[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/ivys/ivy.xml
[ivy:retrieve]         tried
/usr/share/apache-ivy-2.1.0/local/org.apache.ant/ant-parent/1.7.1/jars/ant-parent.jar
[ivy:retrieve]     local: no ivy file nor artifact found for
org.apache.ant#ant-parent;1.7.1
....
<skip some stuff>
....

[ivy:retrieve]         tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
[ivy:retrieve]     public: found md file for org.apache.ant#ant-parent;1.7.1
[ivy:retrieve]         =>
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
(1.7.1)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
...
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
[ivy:retrieve]     public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.pom
[ivy:retrieve]     [SUCCESSFUL ]
....
<skip some stuff>
....
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.7.1/ant-parent-1.7.1.jar
[ivy:retrieve] CLIENT ERROR: Not Found


So ivy can't find ant-parent in the repo1.maven.org repo. Now I suppose that
is a problem with that repository, but why is ivy trying to download that
file, since i specified no dependencies? I don't want or need that file.

How do i get around this?
dave





Reply via email to