Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.6
-
Fix Version/s: 2.0.8, 3.0-alpha-1
-
Component/s: None
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
I would like to be able to access the execution ID from within a plugin. This could be useful for example to run only certain executions. This could be done with a small change to the plugin expression evaluator.
I created a patch that would give the plugin access to the current MojoExecution.
thinking about whether this is a good idea... it is probably not harmful, but I'm not sure if it would also be a best practice not to use it.
What is the use case you have? If the executions are structured appropriately, I would think the mojo just runs or not, and the configuration can be used to alter behaviour.