Wrap parsing of Maven versions in a try-catch both when they contain a dash and when they don't.

Signed-off-by: Rafał Krzewski <rafal.krzewski@caltha.pl>
More flexibility for Maven version parsing: assume first character that
is not a digit or period is the start of the qualifier. Single period or
dash character between version and qualiier is skipped.

Signed-off-by: Rafał Krzewski <rafal.krzewski@caltha.pl>
Merge pull request #637 from rkrzewski/mvn_fexible_parsing

More flexibility in parsing Maven versions.