Combine shredded pineapple, sugar, cinnamon stick, star anise, cloves and lemon juice in a large saucepan
Simmer the pineapple mixture over medium-low heat for about 30 minutes, stirring constantly. It will turn into a nice golden brown colour. You’ll know it’s ready when it is very thick and the pineapple pulp becomes a bit translucent.
Let the pineapple jam cool completely before handling. Discard cinnamon stick, star anise and cloves.
Sift the flour into a large mixing bowl. Add salt.
Cut the chilled butter into cubes and toss into flour. Use your hands to combine the butter and flour until the flour is crumbly.
Add the eggs and cold water to the dough.
Use your hands to knead the pastry dough till it forms into a ball. Do not over-knead.
Preheat oven to 350 degrees F.
Roll the pineapple jam into individual small balls. Set aside.
Roll out the dough to a ¼ inch thickness on a floured surface. Use a cookie cutter (1.5 to 2 inch diameter) to create rounds and place them on parchment paper over a baking sheet.
Make a divot in the center of each cookie, then nestle one pineapple jam ball in the middle.
Bake for 20 minutes.
Allow them to cool completely before indulging. Enjoy!