It works:
mvn versions:update-parent -DparentVersion=[1.1]
The reason is this: since it is expected that the parentVersion property will have a range , not one version.
Then you can set " -DparentVersion=[14,16) " as described in the -maven-plugin version, but if you want to install this version (for example, 1.0), you must define the range with only one result, using bounding brackets: [1,0].
See version range specification: http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
This also works for the -SNAPSHOT version, unless you forget to set allowSnapshots = true
source share