2) flatten will resolve and keep all inherited from parent(s) plugins,
regardless of what is actually used by other sections
such as <build> and <profiles> of the pom
3) expected behavior is to filter out non-relevant plugins,
otherwise resulting pom is littered with spurious entries
I do not see how to do this without artificial intelligence or lots of work. This is IMHO more complex as it looks in the first place. PR is welcome of course...
1) when using flatten with:
2) flatten will resolve and keep all inherited from parent(s) plugins, regardless of what is actually used by other sections such as
<build>
and<profiles>
of the pom3) expected behavior is to filter out non-relevant plugins, otherwise resulting pom is littered with spurious entries