LONDON--J Sainsbury PLC (SBRY.LN) has struck a deal with Alibaba Group Holding Ltd. BABA, +0.53% to trial selling ambient groceries in the country.

Sainsbury will sell products that have a long shelf like like tea, coffee, granola, biscuits and long-life milk through Alibaba's Tmall site, said a spokeswoman. It won't sell fresh food.