-
Bug
-
Resolution: Duplicate
-
Highest
-
None
-
None
-
None
-
None
Can't perform maven release prepare.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Cannot prepare the release because you have local modifications :
[build-number.txt:unknown]
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
Maven job parameters:
clean release:prepare -Darguments='-Dmaven.test.skip=true' --batch-mode
Also tried
clean release:prepare -Darguments='-Dmaven.test.skip=true'
If build-number.txt is checked in, you will need to delete it from the repository. After that you have to ensure that build-number.txt does not get checked in to svn.
For the given project. Change to the project root directory and make sure it's deleted from the repository first.
If build-number.txt isn't n the repository, you will get errors you can ignore.
Then ensure it doesn't get checked in any more.
svn propedit svn:ignore build-number.txt svn -m 'ingore build-number.txt' commit
To set this globally, you need to make 'build-number.txt' you will need to modify the svn server configuration. See svn documentation for the Runtime Configuration Area for specifics, but the configuration line should be something like: