You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2005/04/08 09:24:42 UTC

[jira] Created: (MNG-271) exported pom.xml should contain full pom information

exported pom.xml should contain full pom information
----------------------------------------------------

         Key: MNG-271
         URL: http://jira.codehaus.org/browse/MNG-271
     Project: m2
        Type: Wish
    Versions: 2.0-alpha-1    
    Reporter: Vincent Massol


When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).

Thus it can be used standalone and does not offer all the information there is about the module.

As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-271) exported pom.xml should contain full pom information

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

    Resolution: Fixed

> exported pom.xml should contain full pom information
> ----------------------------------------------------
>
>          Key: MNG-271
>          URL: http://jira.codehaus.org/browse/MNG-271
>      Project: Maven 2
>         Type: Wish
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>     Assignee: John Casey
>      Fix For: 2.0-alpha-3

>
>
> When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).
> Thus it can be used standalone and does not offer all the information there is about the module.
> As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-271) exported pom.xml should contain full pom information

Posted by "Joerg Schaible (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-271?page=comments#action_31721 ]
     
Joerg Schaible commented on MNG-271:
------------------------------------

Just for reference:
 MAVEN-1390
 MPPOM-4

> exported pom.xml should contain full pom information
> ----------------------------------------------------
>
>          Key: MNG-271
>          URL: http://jira.codehaus.org/browse/MNG-271
>      Project: m2
>         Type: Wish
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol

>
>
> When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).
> Thus it can be used standalone and does not offer all the information there is about the module.
> As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-271) exported pom.xml should contain full pom information

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-271?page=history ]

Brett Porter updated MNG-271:
-----------------------------

    Fix Version: 2.0-alpha-3

> exported pom.xml should contain full pom information
> ----------------------------------------------------
>
>          Key: MNG-271
>          URL: http://jira.codehaus.org/browse/MNG-271
>      Project: m2
>         Type: Wish
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>      Fix For: 2.0-alpha-3

>
>
> When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).
> Thus it can be used standalone and does not offer all the information there is about the module.
> As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-271) exported pom.xml should contain full pom information

Posted by "Michal Maczka (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-271?page=comments#action_31727 ]
     
Michal Maczka commented on MNG-271:
-----------------------------------

I also think that this is a way to go.

Say we have parent project P1 and child project P2.

There are two possible sources of errors here:

a) P2 pom is deployed to repository and P1 pom is missing there (from my experience this happens very often).
b) P1 and P2 are both in the snapshot state. P1 and P2 poms are deployed to repository, then P1 pom
  is changed (e.g. some dependencies are upgraded) and then re-deployed to the repository. 
  After that operation P2 pom in the repository will be also indirectly changed.
  It is questionable if this is a desired thing. Taking into the consideration the fact that we have  
multilevel inheritance it can easily lead to the problems which are difficult to detect and it can  break builds which would work if "expanded" poms were deployed to the repository.
  

Other reasons why this is a good idea:

- It should be easy to write a tool which reuses m2 repository metadata. Project inheritance in m2 is very complex and is mostly irrelevant for such tools. So this will help to widespread the acceptance of poms as the artifact repository metadata.

- Process of resolving transitive dependencies should be fast. So it would be better if less operations for building "full poms" were needed. This can be addressed in m2 in a different way (e.g. local database of POMs can be build) but again such thing for efficiency must be reimplemented by any other tools.




> exported pom.xml should contain full pom information
> ----------------------------------------------------
>
>          Key: MNG-271
>          URL: http://jira.codehaus.org/browse/MNG-271
>      Project: m2
>         Type: Wish
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol

>
>
> When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).
> Thus it can be used standalone and does not offer all the information there is about the module.
> As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-271) exported pom.xml should contain full pom information

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-271?page=comments#action_39159 ]
     
Brett Porter commented on MNG-271:
----------------------------------

decision on this: 

resolved in the JAR: yes
resolved in the repository: no

why? references to SNAPSHOT data will get out of date. Can't see a use case for doing this in the actual repository other than reproducibility, but you can make a release which will resolve versions for that.


> exported pom.xml should contain full pom information
> ----------------------------------------------------
>
>          Key: MNG-271
>          URL: http://jira.codehaus.org/browse/MNG-271
>      Project: m2
>         Type: Wish
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>      Fix For: 2.0-alpha-3

>
>
> When you install a module in the local repo the pom.xml file is copied (it's also included in jars). That's very good. However if my project is a module (i.e it depends on some parent(s)), the pom.xml that is dumped only contains partial information (it does not contain inherited information).
> Thus it can be used standalone and does not offer all the information there is about the module.
> As the pom is fully constructed in memory, it would be nice to dump it from memory instead of copying the pom.xml file.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org