Get the jar path of a maven artifact

I’m writing a custom gradle plugin. It should generate some additional files in the project. For that I need to load the jar artifact from the known maven dependency and load all it’s classes.

So how can I get the path to the jar file of a maven artifact from my plugin?