Closed janzyka closed 8 years ago
Actually the test with 'version' goal which is now throwing NPE shoul write to a file and assert on the file content. Was too lazy last night, if I find some time today will add that.
I fixed the version export tests to make more sense. Added test for single module which works and did the same for multi module which throws the NulPointerException
It's late here, hope it makes sense and I din't make some stupid mistake/typos.
Actually to explain why this is needed. I'm using jGitFlow plugin which doesn't really meet this continuous delivery approach ... But anyway. Once I create release branch I have a CI 'stabilization' build which produces a release candidate for every commit to this branch. I'm trying to use your plugin as the first step before the artifact is produced so the build has nice 1.0-RC.X version.
This works fine until the release-finish goal is invoked on the release branch which among other things amends the pom versions on the release branch to the target 'release' version (1.0). So now on the release branch I have commit with the release version (1.0), this triggers the 'stabilization' build and this is where the plugin fails to set the RC version and the build then fails.
One may argue that this last commit to the release branch shouldn't be built as the final release package is produced from master branch once the release branch is merged to master. This is true but it would require conditional run of the 'stabilization' build and this is tricky. So leaving the process to produce yet another RC for the actual release package doesn't seem to be big problem to me.