Princeton University has agreed to pay $18.2 million over the next several years to settle claims brought by a group of local residents that the university was improperly claiming property tax exemptions on facilities that actually are used as money-making enterprises.

The university announced the settlement, which will end five years of litigation, on Oct. 14. A trial had been scheduled to begin Oct. 17 in New Jersey Tax Court.