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 Boden (JIRA)" <ji...@codehaus.org> on 2006/03/14 12:27:29 UTC

[jira] Created: (MNG-2149) Why have aggregator projects? Can't we just add tags in normal pom.xml files and have them behave transitively?

Why have aggregator projects? Can't we just add <module/> tags in normal pom.xml files and have them behave transitively?
-------------------------------------------------------------------------------------------------------------------------

         Key: MNG-2149
         URL: http://jira.codehaus.org/browse/MNG-2149
     Project: Maven 2
        Type: Wish

  Components: Reactor and workspace  
    Versions: 2.0.2    
    Reporter: David Boden
    Priority: Critical


At the moment, we have to have an aggregator xml file with <packaging>pom</packaging> in order to build multiple modules.

Why can't my ss_base_applet module contain:
<module>../ss_base_shared</module>

This would mean that whenever ss_base_applet was built, it built ss_base_shared too (taking into account the dependency definitions to work out the order).

There would, of course, need to be a command line switch to say ("don't build sub modules"). It already exists!
-N,--non-recursive            Do not recurse into sub-projects

Here's my current aggregator pom. I'd much prefer to define these transitively in the same way that I can define the dependencies transitively:
    <modules>
        <!-- Ensure that the parent pom is installed -->
        <module>../SSBuild</module>
        
        <!-- Modules shared between all SalesStation instances -->
        <module>../FET_S</module>
        <module>../ss_base_shared</module>
        <module>../ss_offering_shared</module>
        <module>../ss_offering_lib</module>
        <module>../ss_base_applet</module>
        <module>../sales_station_lib</module>
        <module>../sales_station_applet</module>
        <module>../SS</module>
        
        <!-- CDS modules -->
        <module>../cds_ss_shared</module>
        <module>../cds_ss_applet</module>
        <module>../cds_ss_lib</module>
        <module>../CDSSS</module>
        <module>../CDSSS-ear</module>
        
        <!-- EGB and Credit modules -->
        <module>../gov_ss_base_shared</module>
        <module>../gov_ss_base_applet</module>
        <module>../egb_ss_lib</module>
        <module>../credit_ss_lib</module>
        <module>../ss_cats_lib</module>
        <module>../ss_ecn_handler</module>
        <module>../egb_ss_ecn_handler</module>
        <module>../egb_ss_shared</module>
        <module>../egb_ss_applet</module>
        <module>../credit_ss_applet</module>
        <module>../credit_ss_shared</module>
        <module>../EgbSS</module>
        <module>../EgbSS-ear</module>
    </modules>

-- 
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


[jira] Closed: (MNG-2149) Why have aggregator projects? Can't we just add tags in normal pom.xml files and have them behave transitively?

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MNG-2149.
-----------------------------

         Assignee: Brett Porter  (was: Jason van Zyl)
       Resolution: Incomplete
    Fix Version/s:     (was: 2.1)

Maybe just been at this too long today, but I don't se a request in here - it seems to be stating something that already works for you?

> Why have aggregator projects? Can't we just add <module/> tags in normal pom.xml files and have them behave transitively?
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2149
>                 URL: http://jira.codehaus.org/browse/MNG-2149
>             Project: Maven 2
>          Issue Type: Wish
>          Components: Reactor and workspace
>    Affects Versions: 2.0.2
>            Reporter: David Boden
>            Assignee: Brett Porter
>            Priority: Critical
>
> At the moment, we have to have an aggregator xml file with <packaging>pom</packaging> in order to build multiple modules.
> Why can't my ss_base_applet module contain:
> <module>../ss_base_shared</module>
> This would mean that whenever ss_base_applet was built, it built ss_base_shared too (taking into account the dependency definitions to work out the order).
> There would, of course, need to be a command line switch to say ("don't build sub modules"). It already exists!
> -N,--non-recursive            Do not recurse into sub-projects
> Here's my current aggregator pom. I'd much prefer to define these transitively in the same way that I can define the dependencies transitively:
>     <modules>
>         <!-- Ensure that the parent pom is installed -->
>         <module>../SSBuild</module>
>         
>         <!-- Modules shared between all SalesStation instances -->
>         <module>../FET_S</module>
>         <module>../ss_base_shared</module>
>         <module>../ss_offering_shared</module>
>         <module>../ss_offering_lib</module>
>         <module>../ss_base_applet</module>
>         <module>../sales_station_lib</module>
>         <module>../sales_station_applet</module>
>         <module>../SS</module>
>         
>         <!-- CDS modules -->
>         <module>../cds_ss_shared</module>
>         <module>../cds_ss_applet</module>
>         <module>../cds_ss_lib</module>
>         <module>../CDSSS</module>
>         <module>../CDSSS-ear</module>
>         
>         <!-- EGB and Credit modules -->
>         <module>../gov_ss_base_shared</module>
>         <module>../gov_ss_base_applet</module>
>         <module>../egb_ss_lib</module>
>         <module>../credit_ss_lib</module>
>         <module>../ss_cats_lib</module>
>         <module>../ss_ecn_handler</module>
>         <module>../egb_ss_ecn_handler</module>
>         <module>../egb_ss_shared</module>
>         <module>../egb_ss_applet</module>
>         <module>../credit_ss_applet</module>
>         <module>../credit_ss_shared</module>
>         <module>../EgbSS</module>
>         <module>../EgbSS-ear</module>
>     </modules>

-- 
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

        

[jira] Updated: (MNG-2149) Why have aggregator projects? Can't we just add tags in normal pom.xml files and have them behave transitively?

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2149?page=all ]

John Casey updated MNG-2149:
----------------------------

    Fix Version: 2.1

> Why have aggregator projects? Can't we just add <module/> tags in normal pom.xml files and have them behave transitively?
> -------------------------------------------------------------------------------------------------------------------------
>
>          Key: MNG-2149
>          URL: http://jira.codehaus.org/browse/MNG-2149
>      Project: Maven 2
>         Type: Wish

>   Components: Reactor and workspace
>     Versions: 2.0.2
>     Reporter: David Boden
>     Priority: Critical
>      Fix For: 2.1

>
>
> At the moment, we have to have an aggregator xml file with <packaging>pom</packaging> in order to build multiple modules.
> Why can't my ss_base_applet module contain:
> <module>../ss_base_shared</module>
> This would mean that whenever ss_base_applet was built, it built ss_base_shared too (taking into account the dependency definitions to work out the order).
> There would, of course, need to be a command line switch to say ("don't build sub modules"). It already exists!
> -N,--non-recursive            Do not recurse into sub-projects
> Here's my current aggregator pom. I'd much prefer to define these transitively in the same way that I can define the dependencies transitively:
>     <modules>
>         <!-- Ensure that the parent pom is installed -->
>         <module>../SSBuild</module>
>         
>         <!-- Modules shared between all SalesStation instances -->
>         <module>../FET_S</module>
>         <module>../ss_base_shared</module>
>         <module>../ss_offering_shared</module>
>         <module>../ss_offering_lib</module>
>         <module>../ss_base_applet</module>
>         <module>../sales_station_lib</module>
>         <module>../sales_station_applet</module>
>         <module>../SS</module>
>         
>         <!-- CDS modules -->
>         <module>../cds_ss_shared</module>
>         <module>../cds_ss_applet</module>
>         <module>../cds_ss_lib</module>
>         <module>../CDSSS</module>
>         <module>../CDSSS-ear</module>
>         
>         <!-- EGB and Credit modules -->
>         <module>../gov_ss_base_shared</module>
>         <module>../gov_ss_base_applet</module>
>         <module>../egb_ss_lib</module>
>         <module>../credit_ss_lib</module>
>         <module>../ss_cats_lib</module>
>         <module>../ss_ecn_handler</module>
>         <module>../egb_ss_ecn_handler</module>
>         <module>../egb_ss_shared</module>
>         <module>../egb_ss_applet</module>
>         <module>../credit_ss_applet</module>
>         <module>../credit_ss_shared</module>
>         <module>../EgbSS</module>
>         <module>../EgbSS-ear</module>
>     </modules>

-- 
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