I'm trying to understand how maven determines when to use plugins for a module.
I have a parent pom and many modules. I noticed that if I put a <pluginManagement> in the parent and specify the xdoclet maven plugin configured for the "generate-resources" phase, that it gets executed when that phase comes due at the module level -- except for when there are no files for xdoclet to process. So it appears smart like that but I don't know how that is orchestrated.
I am trying to get the antrun plugin to behave similarly, but it didn't work when I set it up similarly. That is, specifying the plugin in the <pluginManagement> of the parent pom, for the generate-sources goal. It doesn't get executed. (note: it's not actually generating sources, it's generating other files needed by assembly:assembly). I experimented and put it in /project/build/plugins and low and behold, it is executed now.
What's going on? Please enlighten me... and better yet, point me to documentation for this 'cause I haven't found it.
~ David Smiley --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
