You are viewing a plain text version of this content. The canonical link for it is here.
Posted to repository@apache.org by Steve Loughran <st...@gmail.com> on 2006/08/29 21:36:41 UTC
how do mavey & ivy deal with composite jars
I have yet another question on the topic of dependency logic.
Imagine I have a jar, call it j2ee-1.5.jar. This hypothetical JAR
would include a lot of other things, that are available on their own,
like mail.jar, activation.jar, jacc.jar, jta.jar, persistence-api.jar,
etc.
1. Is there anyway to declare in the metadata that this is the case;
that importing one jar gives you all the other artifacts?
2. Has anyone looked at automatically discovering this incorporation
by way of rummaging around the JAR files?
-steve
Re: how do mavey & ivy deal with composite jars
Posted by Carlos Sanchez <ca...@apache.org>.
On 8/29/06, Steve Loughran <st...@gmail.com> wrote:
> I have yet another question on the topic of dependency logic.
>
> Imagine I have a jar, call it j2ee-1.5.jar. This hypothetical JAR
> would include a lot of other things, that are available on their own,
> like mail.jar, activation.jar, jacc.jar, jta.jar, persistence-api.jar,
> etc.
>
> 1. Is there anyway to declare in the metadata that this is the case;
> that importing one jar gives you all the other artifacts?
it's logged in Maven jira to be done in next releases
>
> 2. Has anyone looked at automatically discovering this incorporation
> by way of rummaging around the JAR files?
>
> -steve
>
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
Re: how do mavey & ivy deal with composite jars
Posted by Xavier Hanin <xh...@jayasoft.fr>.
Steve Loughran wrote:
> I have yet another question on the topic of dependency logic.
>
> Imagine I have a jar, call it j2ee-1.5.jar. This hypothetical JAR
> would include a lot of other things, that are available on their own,
> like mail.jar, activation.jar, jacc.jar, jta.jar, persistence-api.jar,
> etc.
>
> 1. Is there anyway to declare in the metadata that this is the case;
> that importing one jar gives you all the other artifacts?
This is not addressed in Ivy for the moment. No user has requested such
a feature until now, maybe it's because most of our users use a private
repository, in which they can choose to declare your hypothetic j2ee jar
as a virtual module, with only dependencies on all the other stuff, but
no publication of a single jar. In this case it's as easy to add a
dependency on the whole j2ee without really getting it as a single jar.
At least this is what we do in our own use of Ivy (not for j2ee, but for
spring for example).
But the idea is interesting, I will certainly add a jira issue for it
(unless you want to add it yourself?)
>
> 2. Has anyone looked at automatically discovering this incorporation
> by way of rummaging around the JAR files?
Not for the moment, but I plan to work on tools trying to extract useful
information out of jars if I find enough time. So it may be part of my
investigation. If you plan to work on that too, may be we can try to
share our efforts?
Xavier
>
> -steve