|
I see what you mean. That makes sense only if the <plugin><inherited> is set to false.
Now flip the inheritance boolean at the <plugin> level to true. Going by the same logic, all executions now would be inherited even if they were individually set to false. Now since the value of <inherited> is true by default, all executions are always inherited and there's no way of overriding them. I think this is what we should do. <plugin><inherited> set to true by default. if <plugin><inherited> changed to false, all executions inside it are also not inherited, no matter what their individual settings are. I think you're right. I've attached test-inheritance-true.zip that shows your point.
Sorry, just reading over this one more closely, and if we're going to pursue adding a new element to the POM, it should wait for 2.1.
In the meantime, you can override a single execution within a plugin config by making sure it has a matching <id/>. |
|||||||||||||||||||||||||||||||||||||||||||||||||
You can visualize that by running mvn help:effective-pom in parent project.