Yep, I think this is related to it only picking the first version it comes across, regardless of future version declarations.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Ovrevik Sent: Wednesday, February 20, 2008 10:25 PM To: dev@maven.apache.org Subject: Configuration not selected properly when a plugin is specified multiple times in the pom. Only the first plugin configuration is applied when a plugin is used multiple times within a profile. Following plug in configurations do not use their specified configuration. Instead, configuration is based on what appears to be a combination of the configuration specified in the first plugin configuration and some sort of default configuration. I searched the jira issues for a similar reported issue with no success. The code does have a big comment about a "limitation in modello" if that helps. It seems that this must be a known issue. But, if it is new, I will enter a new jira issue and supply the patch that I came up with (It is small). I have observed this behavior using the sql-maven-plugin. I believe that I have traced the problem down to the implementation of MavenProject.getGoalConfiguration. The logic iterates over all plugins searching for plugins that match the specified group and plugin id along with a matching execution id. The problem appears to be that the iteration is stopped at the matching group and plugin id even if the execution id does not match. This results in all future plugin definitions not having the opportunity for consideration. Thanks, Ryan Ovrevik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]