isMavenVersion

Checks whether the current Maven runtime matches the specified version range. A version range can either use the
usual mathematical syntax "[2.0.10,2.1.0),[3.0,)" or use a single version "2.2.1". The latter is a short form for
"[2.2.1,)", i.e. denotes the minimum version required.

Parameters:

versionRange - The version range to match the current Maven runtime against, must not be null.

Returns:

true if the current Maven runtime matches the specified version range, false otherwise.

Throws:

IllegalArgumentException - If the specified version range is null, empty or otherwise not a valid
version specification.