Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-3671

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

    Details

    • Complexity:
      Intermediate
    • Testcase included:
      yes
    • Number of attachments :
      1

      Description

      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

        Activity

        Hide
        John Casey added a comment -

        fixed, and integration test included.

        Show
        John Casey added a comment - fixed, and integration test included.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: