Hi,
have you taken a look into the maven-dependency-plugin code ? This works as
well in M2 as well in M3 ...
Aether is intended only for M3 world...within a plugin you can get the
Dependencies via:
this.project.getArtifacts();
if you inject the MavenProject on your plugin parameters:
/**
* The Maven project.
*
* @parameter expression="${project}"
* @required
* @readonly
*/
protected MavenProject project;
Take a look at:
https://github.com/khmarbaise/Maven-License-Verifier-Plugin/blob/master/src/main/java/com/soebes/maven/plugins/mlv/AbstractLicenseVerifierPlugIn.java
Or take a look at the Maven-dependency-plugin...code...might be a better
place...
Kind regards
Karl Heinz Marbaise
-----
Kind regards
Karl Heinz Marbaise
----
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-plugin-for-dependency-resolution-tp5093256p5094161.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]