XWIKI-9297: The packager maven plugin never dispose the context and components it creates
(cherry picked from commit 4b5ebf6a0378dd95baeb380a976d7f83c21f36a5)