How to get current execution of a maven plugin?

I am doing a little maven plugin that must have multiple executions that can have equal phases and goals. In this plugin I need to get the current execution to get its configuration.

I can get all executions by plugin.getExecutions() but how to find out which execution is current in order to do execution.getConfiguration()?

1 answer