Ok, this isn't quite as I described it.
I thought I had specifically "installed" the javamail module into my
local repository. But it looks like it was actually pulled in as a
transitive dependency on some other module that I installed. So, when
I needed to declare a direct dependency on javamail for my project, I
saw it in my local repository and just started using it. I looked at
the ivy.xml file, decided that the "api" was the configuration I
wanted to use, and then found that the artifact tied to that
dependency didn't actually exist in my folder structure. Just now when
I explicitly ran an install task for that module, the mailapi.jar
showed up.
So I guess there is just some confusion on my part about how
dependencies are pulled in when doing an install task with
transitive="true". I would have thought that I would get a full and
correct version of the module even if only a subset of it was
required. Maybe that's just not how it works.
When I say "install" I'm talking about the ivy:install task with from
set to "roundup" and to set to "local", where roundup and local are
defined as:
<filesystem name="local">
<ivy pattern="${temp.repo.root}/[organisation]/[module]/
[revision]/ivy.xml" />
<artifact pattern="${temp.repo.root}/[organisation]/
[module]/[revision]/[type]s/[artifact].[ext]" />
</filesystem>
<packager name="roundup" buildRoot="${user.home}/.ivy2/
packager/build" resourceCache="${user.home}/.ivy2/packager/cache">
<ivy pattern="
http://ivyroundup.googlecode.com/svn/trunk/
repo/modules/[organisation]/[module]/[revision]/ivy.xml"/>
<artifact pattern="
http://ivyroundup.googlecode.com/svn/
trunk/repo/modules/[organisation]/[module]/[revision]/packager.xml"/>
</packager>
On Jan 10, 11:50 am, Archie Cobbs <
arc...@dellroad.org> wrote:
> I thought I was talking about the actual mailapi.jar too :-) I guess I don't
> understand your question.
>
> Here are some possibly relevant facts:
>
> 1. The javamail archive has to be downloaded
> manually<
http://code.google.com/p/ivyroundup/wiki/ManuallyDownloadedSoftware>
> .
> 2. Assuming that it's downloading OK, then the mailapi.jar artifact will
> get resolved only if you depend on the "api" configuration.
>
> If these don't help, can you provide a simple test case?
>
> -Archie
>
> On Sun, Jan 9, 2011 at 10:54 PM, Tom Mack <
t...@tom-mack.com> wrote:
> > I'm talking about the actual mailapi.jar artifact. When I installed
> > the module to a local repository, that particular artifact was missing.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "ivyroundup" group.
> > To post to this group, send email to
ivyro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
ivyroundup+...@googlegroups.com<ivyroundup%2Bunsubscribe@googlegrou
ps.com>
> > .