You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Gilles Scokart (JIRA)" <ji...@apache.org> on 2007/03/28 06:47:32 UTC

[jira] Created: (IVY-454) Document the notion of virtual module

Document the notion of virtual module
-------------------------------------

                 Key: IVY-454
                 URL: https://issues.apache.org/jira/browse/IVY-454
             Project: Ivy
          Issue Type: Improvement
          Components: Documentation
            Reporter: Gilles Scokart


Here is a copy for the user list :
{quote}
> Hi,
>
> I'm trying to migrate to ivy from maven and have one question. Is it 
> possible to create some common dependencies for multimodule project?
> Something like parent and child pom.xml in maven2. For example, I'm 
> using Spring in almost all modules but don't want to declare it in 
> every module (as in case of version change I will have to update all 
> ivy.xml files). Is it possible to do with ivy?


Ivy do not support parent/child like maven, but you can do something very similar by using virtual module. A virtual module is a module which publishes no artifact at all (put an empty publication section in its ivy file, since no publication element at all is equivalent to publishing one jar artifact).

Then when you declare a dependency on it, you will transitively get all its dependencies, and only its dependencies since it doesn't publish any artifact.
The advantage is that you can obviously declare multiple dependencies like that, so you are not limited to single level inheritance of maven parent/child mechanism.
{quote}

This is I think the most asked questions that we have in the list.  We should add a page in the documentation explaining this.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-454) Document the notion of virtual module

Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484754 ] 

Xavier Hanin commented on IVY-454:
----------------------------------

If this is one of the most asked questions it may even deserve an entry in the FAQ :-)

> Document the notion of virtual module
> -------------------------------------
>
>                 Key: IVY-454
>                 URL: https://issues.apache.org/jira/browse/IVY-454
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Gilles Scokart
>
> Here is a copy for the user list :
> {quote}
> > Hi,
> >
> > I'm trying to migrate to ivy from maven and have one question. Is it 
> > possible to create some common dependencies for multimodule project?
> > Something like parent and child pom.xml in maven2. For example, I'm 
> > using Spring in almost all modules but don't want to declare it in 
> > every module (as in case of version change I will have to update all 
> > ivy.xml files). Is it possible to do with ivy?
> Ivy do not support parent/child like maven, but you can do something very similar by using virtual module. A virtual module is a module which publishes no artifact at all (put an empty publication section in its ivy file, since no publication element at all is equivalent to publishing one jar artifact).
> Then when you declare a dependency on it, you will transitively get all its dependencies, and only its dependencies since it doesn't publish any artifact.
> The advantage is that you can obviously declare multiple dependencies like that, so you are not limited to single level inheritance of maven parent/child mechanism.
> {quote}
> This is I think the most asked questions that we have in the list.  We should add a page in the documentation explaining this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.