You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2017/04/11 20:19:53 UTC
svn commit: r1791023 -
/maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt
Author: michaelo
Date: Tue Apr 11 20:19:52 2017
New Revision: 1791023
URL: http://svn.apache.org/viewvc?rev=1791023&view=rev
Log:
Correct assumption regarding execution's configuration
Submitted-by: Francois Marot <fr...@gmail.com>
This closes #7
Modified:
maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt
Modified: maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt
URL: http://svn.apache.org/viewvc/maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt?rev=1791023&r1=1791022&r2=1791023&view=diff
==============================================================================
--- maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt (original)
+++ maven/site/trunk/content/apt/guides/mini/guide-configuring-plugins.apt Tue Apr 11 20:19:52 2017
@@ -570,13 +570,21 @@ public class MyBindedQueryMojo
Now, <<<MyBindedQueryMojo>>> default phase which is package has been overrided by
install phase.
-
- <<Note:>> Configurations inside the <<<\<executions\>>>> tag differ from those that are outside
- <<<\<executions\>>>> in that they cannot be used from a direct command line
- invocation. Instead they are only applied when the lifecycle phase they are
- bound to are invoked. Alternatively, if you move a configuration section
- outside of the executions section, it will apply globally to all invocations
+
+ <<Note:>> Configurations inside the <<<\<executions\>>>> element used to differ from those that are outside
+ <<<\<executions\>>>> in that they could not be used from a direct command line
+ invocation because they were only applied when the lifecycle phase they were
+ bound to was invoked. So you had to move a configuration section
+ outside of the executions section to apply it globally to all invocations
of the plugin.
+ Since Maven 3.3.1 this is not the case anymore as you can specify on the command line
+ the execution id for direct plugin goal invocation. Hence if you want to
+ run the above plugin and it's specific execution1's configuration from the
+ command-line, you can execute:
+
++----+
+mvn myqyeryplugin:queryMojo@execution1
++----+
** {Using the <<<\<dependencies\>>>> Tag}