You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephen Duncan <st...@gmail.com> on 2005/10/18 17:31:15 UTC

[m2] Dependency Scope Resolution

I have the portlet-api defined as provided scope in a parent POM in
dependencyManagement.  As expected, the following message occurs
indicating that 'provided' is the scope that will be used:

[WARNING]
        Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
'provided' overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or
remove the local scope.

When I run with -X, the following section of output indicates that it
WAS selected for compile, but then overriden:

[DEBUG]   mil.jfcom.cie.portal:cdcie-portletframework:jar:1.2.1
(selected for compile)
[DEBUG]     javax.portlet:portlet-api:jar:1.0 (selected for compile)
[DEBUG]     springframework:spring-beans:jar:1.2.5 (selected for compile)
[DEBUG]       springframework:spring-core:jar:1.2.5 (selected for compile)
[DEBUG]         commons-collections:commons-collections:jar:3.1
(removed - nearer found: 2.1)
[DEBUG]         commons-collections:commons-collections:jar:3.1
(selected for compile)
[DEBUG]         commons-logging:commons-logging:jar:1.0.4 (selected for compile)
[DEBUG]     springframework:spring-core:jar:1.2.5 (selected for compile)
[DEBUG]       commons-collections:commons-collections:jar:2.1 (removed
- nearer found: 3.1)
[DEBUG]       commons-collections:commons-collections:jar:3.1
(selected for compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0.4 (selected for compile)
[DEBUG]     commons-lang:commons-lang:jar:2.1 (selected for compile)
[DEBUG]     springframework:spring-context:jar:1.2.5 (selected for compile)
[DEBUG]     commons-logging:commons-logging:jar:1.0.4 (selected for compile)
[DEBUG]   javax.portlet:portlet-api:jar:1.0 (not setting scope to:
compile; local scope provided wins)
[WARNING]
        Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
'provided' overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or
remove the local scope.


However, it's ending up in my WAR.  Seems like it's a WAR plugin problem, maybe?

--
Stephen Duncan Jr
www.stephenduncanjr.com

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


Re: [m2] Dependency Scope Resolution

Posted by Brett Porter <br...@gmail.com>.
confirmed - will be fixed in 2.0

http://jira.codehaus.org/browse/MNG-1233

On 10/18/05, Stephen Duncan <st...@gmail.com> wrote:
> I have the portlet-api defined as provided scope in a parent POM in
> dependencyManagement.  As expected, the following message occurs
> indicating that 'provided' is the scope that will be used:
>
> [WARNING]
>         Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
> 'provided' overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or
> remove the local scope.
>
> When I run with -X, the following section of output indicates that it
> WAS selected for compile, but then overriden:
>
> [DEBUG]   mil.jfcom.cie.portal:cdcie-portletframework:jar:1.2.1
> (selected for compile)
> [DEBUG]     javax.portlet:portlet-api:jar:1.0 (selected for compile)
> [DEBUG]     springframework:spring-beans:jar:1.2.5 (selected for compile)
> [DEBUG]       springframework:spring-core:jar:1.2.5 (selected for compile)
> [DEBUG]         commons-collections:commons-collections:jar:3.1
> (removed - nearer found: 2.1)
> [DEBUG]         commons-collections:commons-collections:jar:3.1
> (selected for compile)
> [DEBUG]         commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> [DEBUG]     springframework:spring-core:jar:1.2.5 (selected for compile)
> [DEBUG]       commons-collections:commons-collections:jar:2.1 (removed
> - nearer found: 3.1)
> [DEBUG]       commons-collections:commons-collections:jar:3.1
> (selected for compile)
> [DEBUG]       commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> [DEBUG]     commons-lang:commons-lang:jar:2.1 (selected for compile)
> [DEBUG]     springframework:spring-context:jar:1.2.5 (selected for compile)
> [DEBUG]     commons-logging:commons-logging:jar:1.0.4 (selected for compile)
> [DEBUG]   javax.portlet:portlet-api:jar:1.0 (not setting scope to:
> compile; local scope provided wins)
> [WARNING]
>         Artifact javax.portlet:portlet-api:jar:1.0 retains local scope
> 'provided' overriding broader scope 'compile'
>         given by a dependency. If this is not intended, modify or
> remove the local scope.
>
>
> However, it's ending up in my WAR.  Seems like it's a WAR plugin problem, maybe?
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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