XWIKI-9297: The packager maven plugin never dispose the context and components it creates
* fix checkstyle
(cherry picked from commit 38e5d63a8c03010c313220b0a5cc5ae7704a2f33)