Exxon said in a statement it was reviewing the court's decision but that the company had "acted appropriately after the accident and the court has agreed."
"We have apologized to the Jacksonville community and we remain ready to compensate those who were truly damaged by this unfortunate accident. We will continue the cleanup," the statement said.
Attorneys for both groups of plaintiffs did not immediately return telephone messages left Wednesday.
Both cases stem from a leak at an Exxon station in the community of Jacksonville, a small, affluent community about 20 miles north of Baltimore. An Exxon contractor doing work at the station punctured a gasoline feed line and the leak was not properly repaired. That allowed more 26,000 gallons of fuel to pour into the ground over more than a month. Many residents in the area get their water from wells, and the spill led the state to order well monitoring in the area.
Follow Jessica Gresko at http://twitter.com/jessicagresko