Lockheed Martin, the nation's largest defense contractor, announced Wednesday that it has appointed Kevin O'Connor as general counsel, hiring him away from Carrier, where he's been chief legal officer for five years.