Fix maven offline when packaging