Andrzej J. opened MNG-7559 and commented
Since I know that ComparableVersion was brought to Maven from versions-maven-plugin, it turns out the bug described here:
mojohaus/versions#744
also exists in maven, at least in 3.8.3.
According to the maven version spec, versions containing a qualifier should be treated as less major than the same versions without the qualifier.
Currently it's only the case for a few "standard" qualifiers, e.g. "-rc*", "-alpha", etc.
However, it looks like "2.3-pfd" is deemed less major than "2.3".
@Test
public void testComparableVersionWithCustomQualifier()
{
assertThat( new ComparableVersion( "2.3" ).compareTo( new ComparableVersion( "2.3-pfd" ) ),
greaterThan( 0 ) );
}
Affects: 3.8.3
Attachments:
Remote Links:
0 votes, 5 watchers
Andrzej J. opened MNG-7559 and commented
Since I know that ComparableVersion was brought to Maven from versions-maven-plugin, it turns out the bug described here:
mojohaus/versions#744
also exists in maven, at least in 3.8.3.
According to the maven version spec, versions containing a qualifier should be treated as less major than the same versions without the qualifier.
Currently it's only the case for a few "standard" qualifiers, e.g. "-rc*", "-alpha", etc.
However, it looks like "2.3-pfd" is deemed less major than "2.3".
Affects: 3.8.3
Attachments:
Remote Links:
0 votes, 5 watchers