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

Transitive dependency for both compile and test

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 3.2.1
    • None
    • Dependencies
    • None

    Description

      • artifact `B` depends on `A` in test scope.
      • artifact 'C' depends on 'B' in compile scope and test scope with test-jar
      <artifactId>B</artifactId>
      <dependencies>
        <dependency>
          <artifactId>A</artifactId>
          <scope>test</scope>
        </dependency>
      </dependencies>
      
      <artifactId>C</artifactId>
      <dependencies>
        <dependency>
          <artifactId>B</artifactId>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <artifactId>B</artifactId>
          <type>test-jar</type>
          <scope>test</scope>
        </dependency>
      </dependencies>
      

      expected: artifact 'C''s classpath contains 'A'
      actual : 'A' is unknown in 'C''s test time

      Is this normal behaviour or test-jar with test overrides compile

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              jinahya Jin Kwon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: