Germany will end its participation in the European Union training mission in Mali but is ready to continue with a U.N. peacekeeping.