The Hanover Insurance Group Inc. said John J. Leahy has been named chief financial officer and executive vice president effective Sept. 1.

Mr. Leahy will succeed Edward J. Parry III at the Worcester, Mass.-based company. The firm said Mr. Parry announced in February that he planned to pursue “career opportunities.” No other details were provided.

Over the past 25 years, Mr. Leahy has served in key financial, business and strategy roles with PepsiCo Inc. and with Keane Inc., a Boston-based business and information technology services firm.

Mr. Leahy will provide overall leadership for all aspects of the company’s financial operations and investments, the company said.