Uploaded image for project: 'Maven Invoker Plugin'
  1. Maven Invoker Plugin
  2. MINVOKER-23

Use project.getProperties() when performing IT pom interpolations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • None

    Description

      Although some excellent work has been to allow for various scheme of interpolation to be employed it would be very beneficial if the buildInterpolatedPomFile method also would use, optionally if you wish, the project's own properties and not just the <interpolationsProperties> supplied parameter values.

      Simple use case:

      Using the maven-component-it-plugin to inject the project's local repository path into the project's main properties would then allow us to use this value to build a simple 'local repository as a main repository' <repository> into the IT plugin POMS which would allow us to greatly speed up testing.

      The assembly plugin currently jumps through the hoops of filtering and installing a special IT parent pom project to interpolate this 'local repo property value' into a POM and then the IT poms use this parent and thus have access to the special repository of the form:

      <repositories>
      <repository>
      <id>main.local.as.remote</id>
      <url>file://${local.repo.path}</url>
      </repository>
      </repositories>

      <pluginRepositories>
      <pluginRepository>
      <id>main.local.as.remote</id>
      <url>file://${local.repo.path}</url>
      </pluginRepository>
      </pluginRepositories>

      If the invoker was willing to use the main project's Properties as well as the explicitly defined <interpolationsProperties> in interpolation we could remove the need for this filtering and installing and simply get the job done from in one simple call.

      Attachments

        1. MINVOKER-23.diff
          7 kB
          skaze

        Activity

          People

            olamy Olivier Lamy
            skaze skaze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: