This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 45866b9 Add note about cloneProjectsTo being required for filtering 45866b9 is described below commit 45866b9fe02d523ffddedbe7a2bf80560385df99 Author: Carsten Pfeiffer <cpfeif...@users.noreply.github.com> AuthorDate: Mon Mar 31 16:26:30 2025 +0200 Add note about cloneProjectsTo being required for filtering --- src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java | 1 + src/site/apt/examples/filtering.apt.vm | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java index 814af54..428f8dc 100644 --- a/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java +++ b/src/main/java/org/apache/maven/plugins/invoker/AbstractInvokerMojo.java @@ -188,6 +188,7 @@ public abstract class AbstractInvokerMojo extends AbstractMojo { * (<b>Exception</b> when project using invoker plugin is of <i>maven-plugin</i> packaging: * In such case IT projects will be cloned to and executed in <code>target/its</code> by default.) * + * Note: cloning needs to be enabled for properties filtering to work. * @since 1.1 */ @Parameter(property = "invoker.cloneProjectsTo") diff --git a/src/site/apt/examples/filtering.apt.vm b/src/site/apt/examples/filtering.apt.vm index 7a98acb..0c4301b 100644 --- a/src/site/apt/examples/filtering.apt.vm +++ b/src/site/apt/examples/filtering.apt.vm @@ -41,6 +41,8 @@ Filtering Files * The invoker properties, the goals file and the profiles file. Tokens in these files must use the usual Maven syntax <<<$\{...\}>>>. + Note: for filtering to work, the <<<cloneProjectsTo>>> property of the <<<invoker:run>>> goal must be set. + [] The following example directory structure highlights the files which are filtered by the Invoker Plugin: