Maven plug-in only works when Java plug in is enabled so I moved its configuration block.