mirror of https://github.com/apache/maven.git
[MNG-2281] 1.0-beta-3 should be < 1.0-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@900164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
76178a550f
commit
f0fcef7e67
|
@ -145,7 +145,7 @@ public class ComparableVersion
|
|||
private static class StringItem
|
||||
implements Item
|
||||
{
|
||||
private final static String[] QUALIFIERS = { "snapshot", "alpha", "beta", "milestone", "rc", "", "sp" };
|
||||
private final static String[] QUALIFIERS = { "alpha", "beta", "milestone", "rc", "snapshot", "", "sp" };
|
||||
|
||||
private final static List<String> _QUALIFIERS = Arrays.asList( QUALIFIERS );
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ public class ComparableVersionTest
|
|||
}
|
||||
|
||||
private static final String[] VERSIONS_QUALIFIER =
|
||||
{ "1-SNAPSHOT", "1-alpha2snapshot", "1-alpha2", "1-alpha-123", "1-beta-2", "1-beta123", "1-m2", "1-m11",
|
||||
"1-rc", "1-cr2", "1-rc123", "1", "1-sp", "1-sp2", "1-sp123", "1-abc", "1-def", "1-pom-1", "1-1-snapshot",
|
||||
{ "1-alpha2snapshot", "1-alpha2", "1-alpha-123", "1-beta-2", "1-beta123", "1-m2", "1-m11", "1-rc", "1-cr2",
|
||||
"1-rc123", "1-SNAPSHOT", "1", "1-sp", "1-sp2", "1-sp123", "1-abc", "1-def", "1-pom-1", "1-1-snapshot",
|
||||
"1-1", "1-2", "1-123" };
|
||||
|
||||
private static final String[] VERSIONS_NUMBER =
|
||||
|
@ -161,7 +161,7 @@ public class ComparableVersionTest
|
|||
checkVersionsOrder( "1.0-alpha-1", "1.0-alpha-2" );
|
||||
checkVersionsOrder( "1.0-alpha-1", "1.0-beta-1" );
|
||||
|
||||
checkVersionsOrder( "1.0-SNAPSHOT", "1.0-beta-1" );
|
||||
checkVersionsOrder( "1.0-beta-1", "1.0-SNAPSHOT" );
|
||||
checkVersionsOrder( "1.0-SNAPSHOT", "1.0" );
|
||||
checkVersionsOrder( "1.0-alpha-1-SNAPSHOT", "1.0-alpha-1" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue