|
If you have a multi module project and the parent project has a linefeed (not CRLF) before the XML prologue then the versions:set goal updates all the modules but not the top level parent.
Whilst the pom is technically invalid - maven itself is happy with it (as shown by the fact that the versions plugin can even run and update the children).
run the following command on the attached project (tested on windows)
mvn -DnewVersion=1.0.0-SNAPSHOT -DgenerateBackupPoms=false org.codehaus.mojo:versions-maven-plugin:1.3.1:set
verify that the version in the top level pom is not incremented but the child modules are.
reset the attached project and remove the first \n in the top level pom
run the following command on the attached project (tested on windows)
mvn -DnewVersion=1.0.0-SNAPSHOT -DgenerateBackupPoms=false org.codehaus.mojo:versions-maven-plugin:1.3.1:set
verify that the top level pom and all children have had their versions updated.
Expected bahaviour
it works as maven can read and process the file
or
If the project cannot be performed the plugin exits with a big fat error giving some clue as the reason
|