commit: b7d04de03053294019446924ba66f6f3bb45f833 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Mon Jan 9 04:10:39 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jan 9 04:10:39 2017 +0000 URL: https://gitweb.gentoo.org/proj/java-ebuilder.git/commit/?id=b7d04de0
MavenVersion.java: maven verion tricks. src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java b/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java index e603943..5192abc 100644 --- a/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java +++ b/src/main/java/org/gentoo/java/ebuilder/portage/MavenVersion.java @@ -14,7 +14,7 @@ public class MavenVersion implements Comparable<MavenVersion> { * Pattern for parsing maven version number. */ private static final Pattern PATTERN_VERSION = Pattern.compile( - "^(\\d+)(?:\\.(\\d+))?(?:[\\.b](\\d+))?(?:[\\.-](.*))?$"); + "^v?(\\d+)(?:\\.(\\d+))?(?:(?:\\.|b|beta)(\\d+))?(?:[\\.-](.*))?$"); /** * Incremental version number. */