diff --git a/src/main/java/org/codehaus/mojo/versions/ordering/ComparableVersion.java b/src/main/java/org/codehaus/mojo/versions/ordering/ComparableVersion.java index 6b944ce9a..9cb107f6a 100644 --- a/src/main/java/org/codehaus/mojo/versions/ordering/ComparableVersion.java +++ b/src/main/java/org/codehaus/mojo/versions/ordering/ComparableVersion.java @@ -127,7 +127,8 @@ public String toString() private static class StringItem implements Item { - private static final String[] QUALIFIERS = {"snapshot", "alpha", "beta", "milestone", "rc", "", "sp"}; + private static final String[] QUALIFIERS = { + "snapshot", "alpha", "beta", "milestone", "preview", "rc", "", "sp" }; private static final List QUALIFIERS_LIST = Arrays.asList( QUALIFIERS ); @@ -135,9 +136,10 @@ private static class StringItem static { - ALIASES.put( "ga", "" ); - ALIASES.put( "final", "" ); + ALIASES.put( "mr", "milestone" ); ALIASES.put( "cr", "rc" ); + ALIASES.put( "final", "" ); + ALIASES.put( "ga", "" ); } /**