title: maven versions release candidates and snapshot
body: <p>My goal is to release a project which have a single dependency. I have a nexus repository where i deploy both snapshot and release versions.</p>
  
  <p>The one dependency I have has </p>
  
  <pre><code>group:artifact:1.1.0-SNAPSHOT
  </code></pre>
  
  <p>and the following Release Candidate is released in my nexus repo</p>
  
  <pre><code>group:artifact:1.1.0-RC1
  </code></pre>
  
  <p>when asking to the versions plugin to resolve the dependencies, it claims that no new dependency is available. So he consider that </p>
  
  <pre><code>1.1.0-SNAPSHOT &gt; 1.1.0-RC1
  </code></pre>
  
  <p>However, If in my project, i have version 1.0.0-SNAPSHOT, version 1.1.0-RC1 is resolved as the newest version.</p>
  
  <p>What am I missing? (I looked into the plugin sources and we have the following snippet:</p>
  
  <pre class="lang-java prettyprint-override"><code>String otherQualifier = otherVersion.getQualifier();
  
  if ( otherQualifier != null )
  {
    if ( ( qualifier.length() &gt; otherQualifier.length() )
        &amp;&amp; qualifier.startsWith( otherQualifier ) )
    {
      // here, the longer one that otherwise match is considered older
      result = -1;
    }
    else if ( ( qualifier.length() &lt; otherQualifier.length() )
        &amp;&amp; otherQualifier.startsWith( qualifier ) )
    {
      // here, the longer one that otherwise match is considered older
      result = 1;
    }
    else
    {
      result = qualifier.compareTo( otherQualifier );
    }
  }
  </code></pre>
  
  <p>which seems buggy to me. Any idea?</p>