this condition is called osgood schlater disease.
it is an enthesopathy
affecting the tibial tubercles, which may even get swollen at times.
as such there is no permanent solution but sometimes it resolves on its own.
if playng soccer aggravates the problem then it will be good to change over to another sport.
taking rest and mild analgesics will help.