You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2007/05/23 19:04:58 UTC

[jira] Created: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

Multiple executions of embedder reuse the ProjectBuildCache
-----------------------------------------------------------

                 Key: MNG-3008
                 URL: http://jira.codehaus.org/browse/MNG-3008
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.1-alpha-1
            Reporter: Carlos Sanchez


In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
there's a call to resolveParentPom passing the projectBuildCache

This test breaks

/trunk/pom.xml (a:b:1.0-SNAPSHOT)
/trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)

when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml

now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
If it doesn't exist it will throw a FileNotFoundException


-- 
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-3008) Multiple executions of embedder reuse the ProjectBuildCache

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

Jason van Zyl closed MNG-3008.
------------------------------

       Resolution: Incomplete
    Fix Version/s:     (was: 3.x)

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 3.0-alpha-1
>            Reporter: Carlos Sanchez
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

-- 
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] Commented: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_107335 ] 

Carlos Sanchez commented on MNG-3008:
-------------------------------------

Another issue is that the ProjectBuildCache grows in size adding projects that are never removed

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.1-alpha-1
>            Reporter: Carlos Sanchez
>             Fix For: 2.1
>
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

-- 
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] Commented: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204502#action_204502 ] 

Jason van Zyl commented on MNG-3008:
------------------------------------

Code is entirely different and has been profiled. We've gotten rid of all the problems.

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 3.0-alpha-1
>            Reporter: Carlos Sanchez
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

-- 
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] Commented: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108086 ] 

Carlos Sanchez commented on MNG-3008:
-------------------------------------

Discussion http://www.nabble.com/Caching-in-Maven-core-tf4506840s177.html

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.1-alpha-1
>            Reporter: Carlos Sanchez
>             Fix For: 2.1
>
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

-- 
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-3008) Multiple executions of embedder reuse the ProjectBuildCache

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

Brett Porter updated MNG-3008:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.1.x
      Component/s: Embedding

> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.1-alpha-1
>            Reporter: Carlos Sanchez
>             Fix For: 2.1.x
>
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

-- 
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] Commented: (MNG-3008) Multiple executions of embedder reuse the ProjectBuildCache

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108080 ] 

Carlos Sanchez commented on MNG-3008:
-------------------------------------

the memory problem described in last comment happens when calling MavenEmbedder.readProjectWithDependencies( MavenExecutionRequest ) repeatedly.


> Multiple executions of embedder reuse the ProjectBuildCache
> -----------------------------------------------------------
>
>                 Key: MNG-3008
>                 URL: http://jira.codehaus.org/browse/MNG-3008
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Embedding
>    Affects Versions: 2.1-alpha-1
>            Reporter: Carlos Sanchez
>             Fix For: 2.1
>
>
> In DefaultModelLineageBuilder.resumeBuildingModelLineage( ModelLineage lineage, ArtifactRepository localRepository, ProfileManager profileManager )
> there's a call to resolveParentPom passing the projectBuildCache
> This test breaks
> /trunk/pom.xml (a:b:1.0-SNAPSHOT)
> /trunk/child/pom.xml (has a:b:1.0-SNAPSHOT as parent)
> when running a goal in /trunk/child/pom.xml it will cache that a:b:1.0-SNAPSHOT is in /trunk/pom.xml
> now if it's moved or copied to /trunk2 or any other place and the embedder is called again it will use the parent in /trunk/pom.xml instead of /trunk2/pom.xml as it's in the cache
> If it doesn't exist it will throw a FileNotFoundException

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