WISCASSET, Maine — A New York City man will serve nine months in jail for trafficking narcotics and illegally possessing an AR-15 assault rifle in Waldoboro last spring.

Jeffrey Aviles, 27, of Manhattan, pleaded guilty to class B unlawful trafficking in schedule W drugs and class C possession of a firearm by a prohibited person at the Lincoln County Courthouse in Wiscasset on Monday, Feb. 8, according to court documents.

The trafficking charge was reduced from class A aggravated trafficking. The charge refers specifically to crack cocaine “and/or” oxycodone.

Aviles was sentenced to nine months in jail for each count. He will serve the sentences concurrently. He also agreed to forfeit the assault rifle and pay $560 in fines.

Aviles would regularly bring crack cocaine from New York City to Waldoboro for resale in Knox and Lincoln counties, according to a press release issued by the Maine Department of Public Safety at the time of his arrest.

On June 3, 2015, police searched a home at 302 Flanders Corner Rd. in Waldoboro and seized 28 grams of crack cocaine, 1 gram of heroin, the assault rifle, 200 rounds of ammunition, and $2,500 in cash, according to the press release. The street value of the drugs was $3,000.

The Maine Drug Enforcement Agency arrested Aviles at the home, as well as two men who were living at the home: Alphonso C. Belnavis, 44, formerly of New York; and Dean Feltis, 49.

Belnavis pleaded guilty to class A aggravated trafficking of scheduled drugs and class B unlawful possession of scheduled drug at the Lincoln County Courthouse on Aug. 24, 2015, according to the Maine Department of Corrections. He is serving a four-year sentence at the Charleston Correctional Facility.

Feltis, now of Warren, was charged with class C unlawful possession of schedule W drug (heroin).

The Knox County Sheriff’s Office, the Lincoln County Sheriff’s Office, the Maine State Police, the Maine Warden Service, the Rockland Police Department, and the Waldoboro Police Department assisted in the investigation.

Assistant Attorney General Johnathan G. Nathans represented the state. Brunswick attorney Christopher B. Ledwick represented Aviles.