NXBT-758: manage to get a proper return code within Maven