title: Picking Latest Release (not snapshot version) from Nexus in Maven with Plugin
body: <p>I am using <strong>Maven 3.5</strong>. I have a multimodule project structure: Module A is parent and has two children Module B and Module C. </p>
  
  <p>My requirement is: I would like to have latest release from Nexus for certain third party jars. These are basically the jars from the Test Unit. Please note I dont want to have Snapshot versions.</p>
  
  <p>I read that specifying RELEASE in pom.xml in  does not work with maven 3.x versions. But I tried it and it is working fine. (using IntelliJ just for info)
  <strong>1) So why is it working for me ?</strong></p>
  
  <p><strong>2) Should I be using RELEASE with Maven 3.5 ?</strong></p>
  
  <p>I also read that one can use Maven "versions-maven-plugin" with goal "use-latest-releases" with Maven 3.x. I am not sure how to use it exactly. I have tried following:</p>
  
  <p>in my parent pom.xml from Module A:</p>
  
  <pre><code>&lt;plugin&gt;
     &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
     &lt;artifactId&gt;versions-maven-plugin&lt;/artifactId&gt;
     &lt;version&gt;2.5&lt;/version&gt;
     &lt;executions&gt;
        &lt;execution&gt;
           &lt;goals&gt;
              &lt;goal&gt;use-latest-releases&lt;/goal&gt;
           &lt;/goals&gt;
        &lt;/execution&gt;
     &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Now <strong>3) how and what should I specify in version tag of my dependency in sub module say C ?</strong> I wrote like following:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;!-- V dependencies --&gt;
      &lt;version.vvv.iii.piiii&gt;&lt;/version.vvv.iii.piiii&gt;
  &lt;/properties&gt;
  
  &lt;dependency&gt;
          &lt;groupId&gt;c.b.ttt&lt;/groupId&gt;
          &lt;artifactId&gt;V-RApi&lt;/artifactId&gt;
          &lt;version&gt;version.vvv.iii.piiii&lt;/version&gt;      
   &lt;/dependency&gt;
  </code></pre>
  
  <p>Basically I want to know how one can use this particular maven plugin and goal practically. I read Maven documentation for it but could not apply it.</p>