This plugin is meant to be ran on a project that actually uses the code from
a compilation standpoint.

Please note also that your modules section in the ear plugin is useless. The
plugin will auto-detect what's necessary from your pom, you only need to set
values there if you actually want to customize something.

HTH,
S.

On Wed, Feb 3, 2010 at 1:31 PM, Ignatyev Vjacheslav <ignat...@lanit.ru>wrote:

> Hi, all.
>
> Problem with maven-ear-plugin. Why "dependency:analyze" say "Unused
> declared dependencies found"?
>
> -----------------------------------------------
> Command output:
> [...@ivv]~/projects/lodint% mvn dependency:analyze
> [...]
> [INFO] Building Packaging project
> [...]
> [INFO] [dependency:analyze {execution: default-cli}]
> [WARNING] Unused declared dependencies found:
> [WARNING]    org.drools:drools-core:jar:5.0.1:compile
> [WARNING]    org.jboss.seam:jboss-seam:ejb:2.2.0.GA:compile
> [WARNING]
>  ru.lanit.samara.core-process:lodint-ejbs:ejb:1.0-SNAPSHOT:compile
> [WARNING]    ru.lanit.samara.core-process:egr:ejb:1.0-SNAPSHOT:compile
> [WARNING]    ru.lanit.samara.core-process:kladr:ejb:1.0-SNAPSHOT:compile
> [WARNING]
>  ru.lanit.samara.core-process:lodint-web:war:1.0-SNAPSHOT:compile
> [WARNING]    org.richfaces.framework:richfaces-api:jar:3.3.1.GA:compile
> [...]
> -----------------------------------------------
> Packaging project's pom:
> [...]
> <parent>
> <groupId>ru.lanit.samara.core-process</groupId>
> <artifactId>parent</artifactId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <artifactId>lodint</artifactId>
> <name>Packaging project</name>
> <packaging>ear</packaging>
>
> [...]
> <plugins>
> <artifactId>maven-ear-plugin</artifactId>
> [...]
> <modules>
> <ejbModule>
> <groupId>${project.groupId}</groupId>
> <artifactId>lodint-ejbs</artifactId>
> </ejbModule>
> <ejbModule>
> <groupId>${project.groupId}</groupId>
> <artifactId>kladr</artifactId>
> </ejbModule>
> <ejbModule>
> <groupId>${project.groupId}</groupId>
> <artifactId>egr</artifactId>
> </ejbModule>
> <webModule>
> <groupId>${project.groupId}</groupId>
> <artifactId>lodint-web</artifactId>
> <contextRoot>/</contextRoot>
> </webModule>
> </modules>
> [...]
> <dependencies>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>lodint-ejbs</artifactId>
> <type>ejb</type>
> </dependency>
>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>kladr</artifactId>
> <type>ejb</type>
> </dependency>
> [...]
>
>
> Full pom.xml:
> http://samara.lanit.ru/anon-repos/lodint/trunk/packaging/pom.xml
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge

Reply via email to