maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "陈思淼" <chensim...@gmail.com>
Subject How to get all dependecy in a mojo ?
Date Wed, 17 Sep 2008 14:43:49 GMT
My mojo extends AbstractWarMojo, I want to get all the Project's
dependencies including the transitive denpendecies. So i config the
MavenProject in my mojo like thsi:
>
>  /**
>
     * The maven project.
>
     *
>
     * @parameter expression="${project}"
>
     * @required
>
     * @readonly
>
     */
>
    private MavenProject project;

project.getArtifacts() is a empty collection. I saw war plugin and them get
all the war's dependencies in this way? who can tell me how to get all
dependecy in a mojo ?
Thank you.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message