You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ittay Dror (JIRA)" <ji...@codehaus.org> on 2010/05/04 08:53:12 UTC
[jira] Commented: (MNG-2975) test scope does not work with pom
dependency
[ http://jira.codehaus.org/browse/MNG-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219819#action_219819 ]
Ittay Dror commented on MNG-2975:
---------------------------------
I'm also having some issues with this decision. In my tests I need some supporting utilities. These are packaged inside a test jar (using the test-jar goal of maven-jar-plugin). Because of another bug, this jar's dependencies are not used. A workaround could be to use a pom, but according to this bug this is not possible
> test scope does not work with pom dependency
> --------------------------------------------
>
> Key: MNG-2975
> URL: http://jira.codehaus.org/browse/MNG-2975
> Project: Maven 2 & 3
> 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