1. Maven
  2. MNG-3671

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



      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.

      1. pom.xml
        1.0 kB
        John Casey


        John Casey created issue -
        John Casey made changes -
        Field Original Value New Value
        Assignee John Casey [ jdcasey ]
        Fix Version/s 2.0.10 [ 14112 ]
        John Casey made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        John Casey made changes -
        Fix Version/s 2.1.0-M1 [ 14503 ]
        Fix Version/s 2.0.10 [ 14112 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12714073 ] Default workflow, editable Closed status [ 12753717 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12950680 ] Default workflow, editable Closed status [ 12986916 ]


          • Assignee:
            John Casey
            John Casey
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: