I have used the jar trick, but with a bit of vinegar, water, and dish soap. The vinegar smells like fermented/rotted fruits and attracts the flies. I suppose you could also put beer with soap in the jar. I cover them with plastic wrap and poke little holes for the flies to find their way in.