After imprisonment in Dartmoor , Maidstone and Lewes prisons in England , de Valera and other prisoners were released under an amnesty in June 1917 . After imprisonment in Dartmoor , Maidstone and Lewes prisons , de Valera and his comrades were released under an amnesty in June 1917 .