Issue
I specified the range below in my pom.xml
properties
<version.range>[21.2.0,21.2.1)</version.range>
I can confirm there is a version that matches the range. However, when running mvn install
, it is throwing the error
Downloading from central: https://repo.maven.apache.org/maven2/x/y/z/abc/plugin/%5B21.2.0,21.2.1)/abc-%5B21.2.0,21.2.1).pom
It seems it's unable to parse the version.range above. Why?
Note: this is a plugin dependency.
Solution
Answering my own question. As it turned out, a version range is only supported for a dependency, but not for a plugin. Using it for a plugin would cause the issue as above as Maven can't interpret and understand the version range. It's also considered as bad practice by the Maven community.
Answered By - His