Recently, I came accross the following problem :
As I set up dependency management for my project, I had child-pom using plugin with dependencies, that I want to be
According to the following links, it seems not to be possible :
Here is a workaround I found, and I wanted to share with everyone, in case other people had the same problem :
In my root pom, I have defined a property, a dependency management and a plugin management :
2.4.0
2.4.0
...
com.google.gwt
gwt-user
${gwtVersion}
...
org.codehaus.mojo
gwt-maven-plugin
${gwtMavenPluginVersion}
com.google.gwt
gwt-user
${gwtVersion}
...
...
...
And in my child pom, using the relationship provided by plugin management (see Maven2 - problem with pluginManagement and parent-child relationship), I just declare the plugin dependency :
org.codehaus.mojo
gwt-maven-plugin
Now if I change the version in the properties, it is automatically impacting all direct dependencies and plugin dependencies.