[ 
http://jira.codehaus.org/browse/MNG-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126613
 ] 

Anders Kr. Andersen commented on MNG-2975:
------------------------------------------

I have never thought of this as an error nor wanted feature

I have always thought of tests as a very private thing for an artifact.
So it makes full sense for me that B cannot see A's test-scoped dependencies.

> test scope does not work with pom dependency
> --------------------------------------------
>
>                 Key: MNG-2975
>                 URL: http://jira.codehaus.org/browse/MNG-2975
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.4
>         Environment: jdk1.5
>            Reporter: Franck HUGOT
>             Fix For: Reviewed Pending Version Assignment
>
>
> I have a project A with pom packaging (<packaging>pom</packaging>) that use 
> this dependency : 
>               <dependency>
>                       <groupId>org.springframework</groupId>
>                       <artifactId>spring-mock</artifactId>
>                       <version>2.0</version>
>                       <scope>test</scope>
>               </dependency>
> In project B , I try to use the project A like a dependency like this :
>       <dependency>
>                       <groupId>xxx</groupId>
>                       <artifactId>SOFFWK_LIBS</artifactId>
>                       <version>1.0</version>
>                       <type>pom</type>                        
>               </dependency>
>  I don't get the spring-mock transitive dependency when I compile or test 
> project B.
> Is it because it has a test scope? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to