My use case is basically what I said in the description. I would like to be able to call only certain executions of the surefire plugin. I'm currently accomplishing something similar using profiles, but it seemed like there should be an easier way to just call an execution. I was thinking that if the plugin had access to the execution id you could do something like:
mvn test -Dmaven.test.execution1
Then the plugin could check the property to see if it should run or not. Not sure if this is the best way to do it, but it is one idea.
Another idea would be to just add the execution ID to the plugin API, and set it when the plugin is initialized, maybe in the same place the log is initialized. But I thought there might be other useful information in the mojoExecution object.