Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven dependency management for plugin dependencies
    primarykey
    data
    text
    <p>Recently, I came accross the following problem :</p> <p>As I set up dependency management for my project, I had child-pom using plugin with dependencies, that I want to be synchronized with dependencies declared in my dependency management.</p> <p>In a root pom, I declared in my dependency management:</p> <pre class="lang-xml prettyprint-override"><code>&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;2.4.0&lt;/version&gt; &lt;/dependency&gt; ... &lt;dependencies&gt; &lt;dependencyManagement&gt; </code></pre> <p>And in the child pom, I have a plugin which needs gwt-user :</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;version&gt;2.4.0&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;2.4.0&lt;/version&gt; &lt;/dependency&gt; ... &lt;/dependencies&gt; ... &lt;/plugin&gt; </code></pre> <p>However, if I remove the dependency version used in gwt-maven-plugin, the compilation fails.</p> <p>Is there another way to achieve it ?</p> <p>PS: There is a related post <a href="https://stackoverflow.com/questions/6030110/choosing-dependency-version-in-maven-and-maven-plugin">Choosing dependency version in maven and maven plugin</a> which does not answer my question</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.
 

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