How-To: Make a software release
From FactorityWiki
Create the batch file
Create the batch file "fy-mache-release.bat" somewhere in the path:
rem @echo off setlocal set PROJECT_NAME=%1 set RELEASE_VERSION=%2 set NEXT_VERSION=%3 set USERNAME=%4 set PASSWORD=%5 set URL=http://svn.office.factority.de/factority set URL_RELEASES=%URL%/RELEASES set URL_BRANCHES=%URL%/BRANCHES set DRY=false rem ####################### rem Branching is currently not possible, Maven Release Plugin 2.0-beta-10 will probably fix this set cmd= set cmd=%cmd% --batch-mode set cmd=%cmd% release:branch set cmd=%cmd% -Dusername=%USERNAME% -Dpassword=%PASSWORD% set cmd=%cmd% -DtagBase=%URL_BRANCHES% set cmd=%cmd% -DautoVersionSubmodules=true set cmd=%cmd% -DupdateBranchVersions=true -DupdateWorkingCopyVersions=false set cmd=%cmd% -DbranchName=%PROJECT_NAME%-%RELEASE_VERSION%.1-SNAPSHOT set cmd=%cmd% -DdevelopmentVersion=%RELEASE_VERSION%.1-SNAPSHOT set cmd=%cmd% -DdryRun=%DRY% rem mvn %cmd% rem ####################### set cmd= set cmd=%cmd% --batch-mode set cmd=%cmd% release:prepare set cmd=%cmd% -Dusername=%USERNAME% -Dpassword=%PASSWORD% set cmd=%cmd% -DtagBase=%URL_RELEASES% set cmd=%cmd% -DautoVersionSubmodules=true set cmd=%cmd% -DdevelopmentVersion=%RELEASE_VERSION% set cmd=%cmd% -DreleaseVersion=%NEXT_VERSION%-SNAPSHOT set cmd=%cmd% -DdryRun=%DRY% mvn %cmd% endlocal
Make a release in SVN
- Go in the source directory of the project (Let the project be fytools)
- Make sure, everything is checked in
- Execute the following command:
fy-make-release fytools 1.1 1.2 username password
This releases the project fytools with current version 1.1-SNAPSHOT and makes the release version 1.1. Development continues on version 1.2-SNAPSHOT. Specify the correct username and password for the SVN repository.
