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

POM dependency scope auto-downgrades from provided to test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.4
    • 3.0-beta-3
    • Dependencies
    • None

    Description

      My project has a dependency on:
      XXX:YYY:jar:1.0-SNAPSHOT (selected for null)
      with transitive dependency:
      commons-logging:commons-logging:jar:1.1:test
      and again triggering a transitive dependency on:
      javax.servlet:servlet-api:jar:2.3:test (selected for test)

      Later on the project also has a dependency:
      AAA:BBB-container:pom:1.0-SNAPSHOT:provided (selected for provided)
      I use this to represent the dependencies provided by the J2EE container in which the application will be deployed.
      This triggers via:
      tomcat:catalina:jar:5.5.15:provided (selected for provided)
      the following funny thing:
      javax.servlet:servlet-api:jar:2.4:provided (removed - nearer found: 2.3)

      Leaving me without servlet-api for the compile scope.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              fcorneli Frank Cornelis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: