EBay Inc and MercExchange LLC have settled a long-running patent lawsuit, said eBay on Thursday, ending a fight that prompted a landmark U.S. Supreme Court ruling.

In the settlement, Internet auction leader eBay will buy three patents from MercExchange needed to run its Web search, online auctions and fixed price sales, as well as other assets, for an undisclosed sum, eBay said in a statement.

The legal fight, which began in 2001, resulted in a Supreme Court ruling in 2006 that weakened courts' power to issue injunctions to bar firms from using infringing technology.

In December, a U.S. District Court in Norfolk, Virginia found that eBay had intentionally infringed on MercExchange's patents and ordered eBay to pay $30 million. EBay said then it would appeal.

In July, Judge Jerome Friedman denied eBay's request to stay proceedings on a patent needed to run eBay's Buy It Now feature, which allows users to buy an item outright at a given price without bidding.

EBay previously had set aside reserves to cover costs of the litigation and potential damages and modified its Web technology to avoid infringement of one of the patents in the dispute, according to the company's latest quarterly financial filing with the U.S. Securities and Exchange Commission.

We're pleased to have been able to reach a settlement with MercExchange, said Mike Jacobson, eBay senior vice president and general counsel.