Issue Type: Bug Bug
Affects Versions: 1.3.1
Assignee: Unassigned
Attachments: maven-test-project.tar.gz
Created: 09/Aug/12 6:06 AM
Description:

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

Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: c:\Java\maven-3.0.4\bin\..
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: c:\java\jdk1.6.0_24\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
Project: Maven 2.x Versions Plugin
Priority: Major Major
Reporter: James Nord
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to