[Hawkular-dev] License plugin complains when doing the first release in the new year

Peter Palaga ppalaga at redhat.com
Wed Jan 6 04:57:31 EST 2016


Hi *,

you need to fix the license headers of all pom.xml files in your git 
repo *before* releasing.

Otherwise, the release commit done by the release plugin will make the 
build fail because that commit happens in 2016 and it makes the license 
plugin to expect the Copyright interval to end with 2016 in pom.xml files.

This is what I recommend before releasing:

cd ~/projects/hawkular-my-component
find . -iname pom.xml -type f -exec \
   sed -i \
's/    Copyright 2014 /    Copyright 2014-2016 /g;'\
's/    Copyright 2014-2015 /    Copyright 2014-2016 /g;'\
's/    Copyright 2015 /    Copyright 2015-2016 /g' \
{} +
# check if you like the result both visually and by running
# a regular build that checks the license headers

git commit -m "Add or fix license headers"

# now you can release

Best,

Peter


More information about the hawkular-dev mailing list