Hi,

doing this outside the context of Maven is probably hard to do. What you at least need is the maven-artifact-resolver[1] (that's the project where the development of Eclipses Aether[2] continues), though is has not been released yet, so right now using Aether would be an option.
You'll also need a maven-aether-provider[3].
I would expect that with these projects you should be able to do your stuff, although doing it with a custom maven-plugin is probably a lot easier.

Robert

[1] https://maven.apache.org/components/resolver-archives/resolver-LATEST/
[2] http://www.eclipse.org/aether/
[3] http://maven.apache.org/ref/3.3.9/maven-aether-provider/

On Sun, 01 Jan 2017 14:04:36 +0100, <org.apache.maven.u...@io7m.com> wrote:

Apologies if this isn't an appropriate subject for this list. I tried
the user list and got no response. Perhaps it is more of a development
question...

Hello.

I'm writing a small program to analyze the dependencies of Maven
projects. There are numerous examples of how to do this from within a
Maven plugin, but I can't work out how to simply load a POM file and
derive a ProjectDependencyGraph from it outside of the context of a
plugin. How do I instantiate all of the required classes? As an
example, I believe I need to instantiate a MavenSession, but all of the
constructors of that class are deprecated...

Does anyone have any example code or documentation I can look at?

Even some pointers such as "these are the list of classes you need to
instantiate" would help.

M

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to