Fixed maven warnings and duplicate plugin declaration.