[cleanup] Fixed some compiler warnings
XWIKI-9760: XWiki Packager Maven Plugin doesn't work with Maven 3.1.1
Fixed.