Таким образом, код псевдо будет выглядеть следующим образом:
Artifact artifact = ArtifactFactory.createArtifact("group", "artifact", "version1");
// The local Repo and remote repo can be injected into your mojo using annoations.
AtifactResolver resolver = new AtifactResolver(localRepo, remoteRepoList);
resolver.resolve(artificat);
File file = artifact.getFile();