Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>According to the following links, it seems not to be possible :</p> <ul> <li><a href="http://maven.40175.n5.nabble.com/dependency-management-within-plugin-dependencies-td78367.html" rel="noreferrer">http://maven.40175.n5.nabble.com/dependency-management-within-plugin-dependencies-td78367.html</a></li> <li><a href="http://jira.codehaus.org/browse/MNG-2496" rel="noreferrer">http://jira.codehaus.org/browse/MNG-2496</a></li> </ul> <p>Here is a workaround I found, and I wanted to share with everyone, in case other people had the same problem :</p> <p>In my root pom, I have defined a property, a dependency management and a plugin management :</p> <pre class="lang-xml prettyprint-override"><code>&lt;properties&gt; &lt;gwtVersion&gt;2.4.0&lt;/gwtVersion&gt; &lt;gwtMavenPluginVersion&gt;2.4.0&lt;/gwtMavenPluginVersion&gt; &lt;/properties&gt; &lt;dependencyManagement&gt; &lt;dependencies&gt; ... &lt;dependency&gt; &lt;groupId&gt;com.google.gwt&lt;/groupId&gt; &lt;artifactId&gt;gwt-user&lt;/artifactId&gt; &lt;version&gt;${gwtVersion}&lt;/version&gt; &lt;/dependency&gt; ... &lt;dependencies&gt; &lt;dependencyManagement&gt; &lt;build&gt; &lt;pluginManagement&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt; &lt;version&gt;${gwtMavenPluginVersion}&lt;/version&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.google.gwt&lt;/groupId&gt; &lt;artifactId&gt;gwt-user&lt;/artifactId&gt; &lt;version&gt;${gwtVersion}&lt;/version&gt; &lt;/dependency&gt; ... &lt;/dependencies&gt; ... &lt;/plugins&gt; ... &lt;/pluginManagement&gt; &lt;/build&gt; </code></pre> <p>And in my child pom, using the relationship provided by plugin management (see <a href="https://stackoverflow.com/questions/1266226/maven2-problem-with-pluginmanagement-and-parent-child-relationship">Maven2 - problem with pluginManagement and parent-child relationship</a>), I just declare the plugin dependency :</p> <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;gwt-maven-plugin&lt;/artifactId&gt; &lt;/plugin&gt; </code></pre> <p>Now if I change the version in the properties, it is automatically impacting all direct dependencies and plugin dependencies.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload