You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Roussel (JIRA)" <ji...@codehaus.org> on 2007/07/06 10:11:13 UTC
[jira] Commented: (MNG-2366) child-level transitive dependency
builds (http://www.mail-archive.com/users@maven.apache.org/msg32502.html)
[ http://jira.codehaus.org/browse/MNG-2366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_101436 ]
David Roussel commented on MNG-2366:
------------------------------------
The way I imagined it should work is like this:
ParentProj\pom.xml
ParentProj\ChildA\pom.xml
ParentProj\ChildB\pom.xml
ParentProj\ChildC\pom.xml
ParentProj\ChildD\pom.xml
ChildA depends on ChildB
ChildC depends on ChildA and ChildD
if I do:
cd ParentProj
mvn install
Then all the children get built. But if I do:
cd ParentProj
mvn install ChildA
Then maven works out that ChildA depends on ChildB and builds them both, but does not build ChildC and ChildD.
> child-level transitive dependency builds (http://www.mail-archive.com/users@maven.apache.org/msg32502.html)
> -----------------------------------------------------------------------------------------------------------
>
> Key: MNG-2366
> URL: http://jira.codehaus.org/browse/MNG-2366
> Project: Maven 2
> Issue Type: Wish
> Components: Dependencies
> Affects Versions: 2.0.4
> Reporter: Hung Le
> Priority: Minor
> Fix For: Reviewed Pending Version Assignment
>
>
> I did not a JIRA for this.
> My wish list: Maven will implement what being outline in this discussion:
> http://www.mail-archive.com/users@maven.apache.org/msg32502.html
> --
> [m2] child-level transitive dependency builds?
> Christopher Cobb
> Tue, 10 Jan 2006 08:15:54 -0800
> Is it expected/preferred that (all?) builds are normally be done from the
> top level? It doesn't seem that this works very well for situations where I
> have a specific plugin which should only be used for certain children. Even
> if I configure the plugin at the top level, it may not make sense/not work
> to invoke it on all the children. So I have been changing into the
> appropriate child directories to invoke some plugins, which leads to also
> doing iterative builds in those child directories.
>
> If it is expected that we will occasionally/frequently change into child
> project to invoke parts of the build (like I do now), then it seems like
> child-level builds should do transitive build dependency resolution. So if
> I am doing a build in P1, and P1 has some dependencies on P4, and something
> in P4 has changed, then P4 should also get built/installed when I am
> building P1. It seems like this could be done by adding something like a
> <relativePathToProject> tag within each <dependency> for which you would
> like build-time transitive dependency resolution. Or, I suppose it could
> also be figured out by navigating to the parent pom and examining the
> children. Then you could figure out which dependencies are actually
> "project siblings" and should be "transitively built".
>
> It looks like sometimes/frequently you need to do child-level builds, and
> you may want/need dependent "project siblings" to be build when you do so.
>
> Is there a way to handle this now? Is this an enhancement request?
> --
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira