[ https://issues.apache.org/jira/browse/MNG-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15742377#comment-15742377 ]
Matt Nelson commented on MNG-2975: ---------------------------------- Sorry for bumping such an old issue, but I would like to get this issue re-evaluated for inclusion in a future release. I agree with [~paragsrivastava] comments. I am developing an SDK with a paired runtime, in order to make it easier for our consumers to test their code my intention was to supply two import poms, one compile/runtime and one test with the matching dependencies required for each goal. > test scope does not work with pom dependency > -------------------------------------------- > > Key: MNG-2975 > URL: https://issues.apache.org/jira/browse/MNG-2975 > Project: Maven > 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 was sent by Atlassian JIRA (v6.3.4#6332)