aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
493 stars 181 forks source link

release-start: Unable to parse the version string: "Hoxton.SR2-SNAPSHOT" #224

Closed DerekHQ closed 4 years ago

DerekHQ commented 4 years ago

VERSION:1.14.0

release-start: Unable to parse the version string: "Hoxton.SR2-SNAPSHOT"

How can I resolve it? Thank you!!

aleksandr-m commented 4 years ago

It is not allowed version string.

Allowed patterns are:

    public static final Pattern STANDARD_PATTERN = Pattern.compile(
        "^((?:\\d+\\.)*\\d+)"      // digit(s) and '.' repeated - followed by digit (version digits 1.22.0, etc)
        + "([-_])?"                // optional - or _  (annotation separator)
        + "([a-zA-Z]*)"            // alpha characters (looking for annotation - alpha, beta, RC, etc.)
        + "([-_])?"                // optional - or _  (annotation revision separator)
        + "(\\d*)"                 // digits  (any digits after rc or beta is an annotation revision)
        + "(?:([-_])?(.*?))?$" );  // - or _ followed everything else (build specifier)

    /* *
     * cmaki 02242009
     * FIX for non-digit release numbers, e.g. trunk-SNAPSHOT or just SNAPSHOT
     * This alternate pattern supports version numbers like:
     * trunk-SNAPSHOT
     * branchName-SNAPSHOT
     * SNAPSHOT
     */
    // for SNAPSHOT releases only (possible versions include: trunk-SNAPSHOT or SNAPSHOT)
    public static final Pattern ALTERNATE_PATTERN = Pattern.compile( "^(SNAPSHOT|[a-zA-Z]+[_-]SNAPSHOT)" );