My plum tree flowers but the flowers all turn brown and die and there are lumps of resin on the branches, which result in no fruit.
Certified GKH Gardening Expert
It sounds very much like a canker disease.
Plum Trees are susceptible to many different diseases.
Here is a link with more information.