smartcodeltd / release-candidate-maven-plugin

Release Candidate is a Maven plugin that makes integrating Maven projects with Continuous Delivery pipelines a little bit easier :-)
http://smartcodeltd.co.uk/release-candidate-maven-plugin
Other
23 stars 11 forks source link

NPE using version inheritance on parent-children projects #1

Closed cdelmas closed 8 years ago

cdelmas commented 8 years ago

Trying to update the version of a parent project, using version inheritance in child projects, make the plugin fail with an NPE at com.smartcodeltd.UpdateVersionMojo.update(UpdateVersionMojo.java:145).

Reproduced on the given project with Maven 3.3.9.

Problem: The code expects to find a version tag which doesn't exist.

Workaround: add a version tag in each module.

Possible fix: if no version tag found, try to update the parent version (which is inherited).

issue.zip

jan-molak commented 8 years ago

Should be fixed in the latest build. Many thanks for attaching the test poms, it really helped with investigating the issue :smiley:

I allowed myself to add your example to the integration tests package.

Best, Jan