J.C. Penney and Macy’s Inc. have ended a lawsuit that accused J.C. Penney of violating an exclusive merchandising agreement between Macy’s and Martha Stewart Living Omnimedia Inc. The case was ordered dismissed by New York State Supreme Court Justice Jeffrey Oing last week after a joint request from Macy’s and J.C.