Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2975

test scope does not work with pom dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.4
    • None
    • Dependencies
    • None
    • jdk1.5

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              fhugot Franck HUGOT
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: