title: How to make maven use the latest release version within version range?
body: <p>In my maven project I use dependencies like this:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
      &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
      &lt;version&gt;[4.2.2, 5.0)&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Since the next major version (5.0) may change the API, I want my project to use the latest <strong>stable</strong> version available for branch 4.x.</p>
  
  <p>This morning bug investigation told me this expression [4.2.2, 5.0) grabs <strong>any</strong> version available. In my case: 4.3-alpha1.</p>
  
  <p>How to make maven use thelatest release version within version range?</p>