Workers at Farmers Dairy had been picketing the plant for six weeks. (CBC)

Workers at a Halifax-area Farmers Dairy plant have voted to ratify a new three-year collective agreement, ending a six-week labour dispute, according to the union that represents them.

A deal was reached in the early hours of Thursday morning, and members of the Communications, Energy and Paperworkers Union of Canada voted to accept it on Friday evening.

"There was some give and take on both sides, which enabled us to reach a deal that worked for our union and the company," said Brian Bennett, president of the local union.

"This was the first labour disruption we’ve had in 34 years and we hope there won’t be another one for a long time."

About 240 workers who help pasteurize the milk, package it and distribute it across the Maritimes  began picketing the plant on July 11.

The workers said they had been locked out and the company said the workers were on strike.

The employees have been without a contract since October. A sticking point in the contract dispute had been pension cutbacks.