Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Labels:
      None

      Description

      After reading the article "Introduction to the Dependency Mechanism" [1], several questions remained unclear which may warrant a revisit by its authors.

      The said article mentions the notion of "runtime classpath." While I can see what compile and test classpaths mean, I fail to understand
      what a runtime classpath is, in particular how it differs from the test classpath.

      Moreover, the article defines "provided scope" as follows:

      provided - this is much like compile, but indicates you expect the JDK
      or a container to provide it. It is only available on the compilation
      classpath, and is not transitive.

      However, in a small project I've created to test dependency scopes, it seems that a dependency declared with the "provided" scope is available when compiling the source, compiling the test cases as well as when running them (the test cases). Thus, it looks like the provided scope is the same as the compile scope, except that the provided scope is not transitive.

      The difference between the runtime and test scopes is also not very clear. Talking to colleagues and reading the Maven mailing lists, it seems that different people have different interpretations, which do not translate in technical terms.

      Moreover, the small table which illustrates the effects of scopes on transitivity is not easy to grok. In particular, the explanation (quoted below) preceding the table does not define the direction of any of the dependencies.

      <quote>
      Each of the scopes affects transitive dependencies in different ways, as is demonstrated in the table below. If a dependency is set to the scope in the left column, dependencies with the scope across the top row will result in a dependency in the main project with the scope listed at the intersection. If no scope is listed, it means the dependency will be omitted.
      </quote>

      Thank you in advance for looking into the matter,

        Activity

        Ceki Gulcu created issue -
        Jason van Zyl made changes -
        Field Original Value New Value
        Fix Version/s Documentation [ 13554 ]
        Jason van Zyl made changes -
        Resolution Incomplete [ 4 ]
        Status Open [ 1 ] Closed [ 6 ]
        Michael Osipov made changes -
        Fix Version/s Documentation Deficit [ 13554 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
        Mark Thomas made changes -
        Workflow jira [ 12713120 ] Default workflow, editable Closed status [ 12752988 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
        Mark Thomas made changes -
        Workflow jira [ 12952069 ] Default workflow, editable Closed status [ 12989423 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ceki Gulcu
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development