[ https://issues.apache.org/jira/browse/MINVOKER-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17958266#comment-17958266 ]
Olivier Lamy commented on MINVOKER-23: -------------------------------------- This project has moved from Jira to GitHub Issues. This issue was migrated to [apache/maven-invoker-plugin#349|https://github.com/apache/maven-invoker-plugin/issues/349]. > Use project.getProperties() when performing IT pom interpolations > ----------------------------------------------------------------- > > Key: MINVOKER-23 > URL: https://issues.apache.org/jira/browse/MINVOKER-23 > Project: Maven Invoker Plugin (Moved to GitHub Issues) > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: skaze > Assignee: Olivier Lamy > Priority: Major > Fix For: 1.2 > > Attachments: MINVOKER-23.diff > > > 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|https://svn.apache.org/repos/asf/maven/sandbox/trunk/plugins/maven-component-it-plugin] > 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|https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-assembly-plugin/pom.xml] > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010)