I'm trying to create an application that will download and use Maven
artifacts outside of Maven. I think that in this case the smartest way would
be to use Maven already existing classes. Can anyone help me with a hint
where to look for?
Would be nice to make it working this way:
Repository rep = new Repository("~/.m2");
Artifact artifact = new Artifact("com.example", "foo", "1.0");
String path = rep.resolve(artifact);
assert path.equals("~/.m2/repository/com/example/foo/1.0/foo.jar");
Thanks!
—
Yegor Bugayenko