You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/18 15:06:19 UTC

[jira] Closed: (MNG-2975) test scope does not work with pom dependency

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

Brett Porter closed MNG-2975.
-----------------------------

         Assignee: Brett Porter
       Resolution: Not A Bug
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

correct, test scope dependencies are not passed on

> 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
>            Assignee: Brett Porter
>
> 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