You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by radai <ra...@gmail.com> on 2010/12/27 12:31:34 UTC

maven 3.0.1 pulling in transient dependencies of a "provided" dependency as "compile"-scoped

i have a maven project that contains the following dependency:

<dependency>
    <groupId>org.jboss.ejb3</groupId>
    <artifactId>jboss-ejb3-core</artifactId>
    <version>1.6.3</version>
    <scope>provided</scope>
</dependency>

this is part of a module that produces an ear artifact. according to the
maven dependency scope doc (
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html)
the transient dependencies of a "provided"-scoped dependency are either
scoped as "provided" or not treated at all. and yet in my case im seeing
this as part of the build (produced with -X):

[DEBUG] com.emc.illuminator:illuminator-ear:ear:6.0-SNAPSHOT
[DEBUG]    ...some direct dependencies edited out for brevity's sake...
[DEBUG]    org.jboss.ejb3:jboss-ejb3-core:jar:1.6.3:provided
[DEBUG]       javassist:javassist:jar:3.7.1.GA:compile
[DEBUG]       org.hibernate:hibernate-core:jar:3.3.1.GA:provided
[DEBUG]          antlr:antlr:jar:2.7.6:provided
[DEBUG]          dom4j:dom4j:jar:1.6.1:compile

notice that javassist and dom4j are "upgraded" to compile-scoped, and they
are also packaged as part of the ear. these are not the only artifacts
"upgraded".
this project builds just fine with maven 2. before i start adding a lot of
exclusions, what am i missing here ?

thanks in advance for any help/ideas/comments/clues,

   radai.

Re: maven 3.0.1 pulling in transient dependencies of a "provided" dependency as "compile"-scoped

Posted by Stephane Nicoll <st...@gmail.com>.
Aren't these coming from another dependencies. If you flip the maven
version on the exact same project, do you get any difference?

S.

On Mon, Dec 27, 2010 at 12:31 PM, radai <ra...@gmail.com> wrote:
> i have a maven project that contains the following dependency:
>
> <dependency>
>    <groupId>org.jboss.ejb3</groupId>
>    <artifactId>jboss-ejb3-core</artifactId>
>    <version>1.6.3</version>
>    <scope>provided</scope>
> </dependency>
>
> this is part of a module that produces an ear artifact. according to the
> maven dependency scope doc (
> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html)
> the transient dependencies of a "provided"-scoped dependency are either
> scoped as "provided" or not treated at all. and yet in my case im seeing
> this as part of the build (produced with -X):
>
> [DEBUG] com.emc.illuminator:illuminator-ear:ear:6.0-SNAPSHOT
> [DEBUG]    ...some direct dependencies edited out for brevity's sake...
> [DEBUG]    org.jboss.ejb3:jboss-ejb3-core:jar:1.6.3:provided
> [DEBUG]       javassist:javassist:jar:3.7.1.GA:compile
> [DEBUG]       org.hibernate:hibernate-core:jar:3.3.1.GA:provided
> [DEBUG]          antlr:antlr:jar:2.7.6:provided
> [DEBUG]          dom4j:dom4j:jar:1.6.1:compile
>
> notice that javassist and dom4j are "upgraded" to compile-scoped, and they
> are also packaged as part of the ear. these are not the only artifacts
> "upgraded".
> this project builds just fine with maven 2. before i start adding a lot of
> exclusions, what am i missing here ?
>
> thanks in advance for any help/ideas/comments/clues,
>
>   radai.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org