Maryland is giving up on a fruitless year-long effort to charge Wal-Mart Stores Inc. a fine unless the retailer provides better health benefits to employees.

Attorney General Douglas Gansler said Monday that Maryland would not appeal a second federal ruling rejecting the state’s law that would require large employers to spend a certain amount on health benefits or pay the difference to the state.