I am creating a maven plugin and need to retrieve a jar from within my code. I don't want to just search through the .m2 folder, but actualy use maven to retrieve the requested resource (both local and remote resources). How can I do this?
PS, once the jar file is available, I already have code to read the jar, so I don't need help with that.