You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2008/07/18 17:18:27 UTC

[jira] Created: (MNG-3671) plugin-level dependencies in POMs are not interpolated at correct time

plugin-level dependencies in POMs are not interpolated at correct time
----------------------------------------------------------------------

                 Key: MNG-3671
                 URL: http://jira.codehaus.org/browse/MNG-3671
             Project: Maven 2
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 2.0.10
            Reporter: John Casey
            Priority: Blocker
             Fix For: 2.0.10
         Attachments: pom.xml

I'm attaching a simple test case POM for this problem, but essentially the plugin-level dependency information isn't interpolated at the time that it's injected into the plugin descriptor for eventual resolution and addition to the plugin classpath. Later, when this plugin is executed, the custom dependency cannot be resolved, and the plugin classloader can't be created.

This is a result of not preserving the original interpolated values for plugin-level dependencies in the dynamic build section of the pom. Just like plugin groupId/artifactId/version, dependency information should not be subject to changes during the course of the build. Therefore, they should be made concrete before the project instance is returned from the project builder initially.

I have what I believe is the fix for this issue, but I need to take the attached test pom and transform it into a formal integration test before I can pronounce this one closed.

-- 
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-3671) plugin-level dependencies in POMs are not interpolated at correct time

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

John Casey updated MNG-3671:
----------------------------

         Assignee: John Casey
    Fix Version/s: 2.0.10

> plugin-level dependencies in POMs are not interpolated at correct time
> ----------------------------------------------------------------------
>
>                 Key: MNG-3671
>                 URL: http://jira.codehaus.org/browse/MNG-3671
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.10
>            Reporter: John Casey
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: pom.xml
>
>
> I'm attaching a simple test case POM for this problem, but essentially the plugin-level dependency information isn't interpolated at the time that it's injected into the plugin descriptor for eventual resolution and addition to the plugin classpath. Later, when this plugin is executed, the custom dependency cannot be resolved, and the plugin classloader can't be created.
> This is a result of not preserving the original interpolated values for plugin-level dependencies in the dynamic build section of the pom. Just like plugin groupId/artifactId/version, dependency information should not be subject to changes during the course of the build. Therefore, they should be made concrete before the project instance is returned from the project builder initially.
> I have what I believe is the fix for this issue, but I need to take the attached test pom and transform it into a formal integration test before I can pronounce this one closed.

-- 
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-3671) plugin-level dependencies in POMs are not interpolated at correct time

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

John Casey closed MNG-3671.
---------------------------

    Resolution: Fixed

fixed, and integration test included.

> plugin-level dependencies in POMs are not interpolated at correct time
> ----------------------------------------------------------------------
>
>                 Key: MNG-3671
>                 URL: http://jira.codehaus.org/browse/MNG-3671
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 2.0.10
>            Reporter: John Casey
>            Assignee: John Casey
>            Priority: Blocker
>             Fix For: 2.0.10
>
>         Attachments: pom.xml
>
>
> I'm attaching a simple test case POM for this problem, but essentially the plugin-level dependency information isn't interpolated at the time that it's injected into the plugin descriptor for eventual resolution and addition to the plugin classpath. Later, when this plugin is executed, the custom dependency cannot be resolved, and the plugin classloader can't be created.
> This is a result of not preserving the original interpolated values for plugin-level dependencies in the dynamic build section of the pom. Just like plugin groupId/artifactId/version, dependency information should not be subject to changes during the course of the build. Therefore, they should be made concrete before the project instance is returned from the project builder initially.
> I have what I believe is the fix for this issue, but I need to take the attached test pom and transform it into a formal integration test before I can pronounce this one closed.

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