Hi Karl,

thanks for help.
Yes I spotted this depedency-plugin and managed to write simple POC which
works (to some extent).

The thing is that I wanted also to sort of "run" my plugin from standalone
java application (Eclipse -> Run As -> Java Application). Aether is great
for such kind of things. I wonder if You could point me to a source which
tells how to run maven-2 plugins ... outside of maven.


Kind Regards,

Marek Psiuk

On Thu, Dec 22, 2011 at 10:57 AM, Karl Heinz Marbaise <k...@soebes.de>wrote:

> 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to