diff --git a/lib/versioning/maven/compare.spec.ts b/lib/versioning/maven/compare.spec.ts
index f15bec70b170047fc70eefeafa455298bd99739b..5ff1c3eb6102512aba29ff67d65dc1e84d90c915 100644
--- a/lib/versioning/maven/compare.spec.ts
+++ b/lib/versioning/maven/compare.spec.ts
@@ -177,6 +177,13 @@ describe('versioning/maven/compare', () => {
         ${'1-milestone'}                                | ${'1-snapshot'}
         ${'1-abc'}                                      | ${'1-xyz'}
         ${'Hoxton.RELEASE'}                             | ${'Hoxton.SR1'}
+        ${'2.0'}                                        | ${'2.0-PFD2'}
+        ${'2.0'}                                        | ${'2.0.SP1'}
+        ${'2.0-PFD2'}                                   | ${'2.0.SP1'}
+        ${'1.3.9'}                                      | ${'1.3.9.fix-log4j2'}
+        ${'1-0.alpha'}                                  | ${'1'}
+        ${'1-0.beta'}                                   | ${'1'}
+        ${'1-0.alpha'}                                  | ${'1-0.beta'}
       `('$x < $y', ({ x, y }) => {
         expect(compare(x, y)).toBe(-1);
         expect(compare(y, x)).toBe(1);
diff --git a/lib/versioning/maven/compare.ts b/lib/versioning/maven/compare.ts
index 3d641f8f55939b844b5db52bc106ca220702ffb8..c0f5a5fb8ec8ee6dc3efaf3124dee92d0bba7465 100644
--- a/lib/versioning/maven/compare.ts
+++ b/lib/versioning/maven/compare.ts
@@ -140,7 +140,7 @@ function tokenize(versionStr: string, preserveMinorZeroes = false): Token[] {
 }
 
 function nullFor(token: Token): Token {
-  return token.prefix === PREFIX_DOT
+  return token.type === TYPE_NUMBER
     ? {
         prefix: token.prefix,
         type: TYPE_NUMBER,