AUBURN — A Massachusetts man accused of invading a local home and beating three people, including a woman who jumped from a window with a broken jaw, was convicted for his role in the January incursion.

Kourtney Williams, 23, of Dorchester, Mass., and two other masked men forced their way into a second-floor apartment at 123 Winter St. at night, demanding money and medical marijuana from the three residents.

The three men, including Williams, pistol-whipped and punched the man and two women who lived at the apartment, then stole cash and marijuana, police said.

Brenda Henry suffered a broken jaw — fractured in three places — from the beating and an injured leg from the fall after she jumped from the window.

Williams was set to go to trial this week when he reached a plea deal with prosecutors on Friday.

He pleaded no contest to two felony charges of Class C aggravated assault, reduced from Class B. He also pleaded no contest to two charges of Class B robbery, reduced from Class A.

He was sentenced to 18 months in prison on each of the four charges, but is allowed to serve them all at the same time, rather than one after the other.

An Androscoggin County grand jury had indicted Williams on three counts of aggravated assault, one count of robbery, burglary and reckless conduct, as well as misdemeanor counts of operating without a license, theft by unauthorized taking and leaving the scene.