Actually, it appears even the docs aren't correct. I moved the javadoc plugin to the parent and left my plugin in the subproject, and it still doesn't work. It only works if nothing is in the parent and both plugins are listed (with the javadoc plugin first) in the subproject POM.
Upon closer inspection, it appears that the order will be as listed if there aren't any plugins inherited from the parent. If inheritance is involved, then the ordering is arbitrary. Looking at org.apache.maven.project.ModelUtils, it looks like the plugin lists are merged using a TreeMap, which sorts the entries by the "natural ordering of the keys". Since at the end of the merge process we take the values list, this will be completely arbitrary. I wrote a bug on this (MNG-1499). ..David.. -----Original Message----- From: David Jackman [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 9:33 AM To: Maven Users List Subject: [m2] Inherited plugin execution order According to the docs (http://maven.apache.org/guides/introduction/introduction-to-the-lifecyc le.html): " When multiple executions are given that match a particular phase, they are executed in the order specified in the POM, with inherited executions running first." This much seems to be true. However, how can I determine/specify the order that inherited executions run? I thought it would be the order specified in the parent POM, but that doesn't seem to be the case. My plugin needs to run after the javadoc plugin (but really ought to be in the same phase), but I can't seem to make this happen for inherited projects. ..David.. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
