A man has been sentenced to 20 years in prison after he was found guilty of several carjackings and firing a rifle at Portland Police officers in 2024.