You may be thinking of The Last Temptation of Christ (1988), but the premise doesn't match perfectly—Willem Dafoe's Jesus arrives in Galilee as himself, not pretending, and stigmata appear in a visionary crucifixion, not as a calculated deception.
No mainstream film matches "a man pretends to be Jesus and fakes stigmata to convince a town." It might be a lesser-known indie, a misremembered plot, or a conflation of tropes (e.g., The Miracle Maker, Jesus of Montreal). More details would help identify it.