Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8278

Make sure components declare correct set of dependencies

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.2-alpha
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As mentioned by Scott Carey in https://issues.apache.org/jira/browse/MAPREDUCE-3378?focusedCommentId=13173437&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13173437, we need to make sure that components are declaring the correct set of dependencies. In current trunk there are errors of omission and commission (as reported by 'mvn dependency:analyze'):

      • "Used undeclared dependencies" - these are dependencies that are being met transitively. They should be added explicitly as "compile" or "provided" scope.
      • "Unused declared dependencies" - these are dependencies that are not needed for compilation, although they may be needed at runtime. They certainly should not be "compile" scope - they should either be removed or marked as "runtime" or "test" scope.

        Attachments

        1. HADOOP-8278.patch
          21 kB
          Tom White
        2. HADOOP-8278.patch
          21 kB
          Tom White
        3. HADOOP-8278.patch
          21 kB
          Tom White
        4. HADOOP-8278.patch
          19 kB
          Tom White
        5. HADOOP-8278.patch
          17 kB
          Alejandro Abdelnur
        6. HADOOP-8278.patch
          17 kB
          Tom White

          Issue Links

            Activity

              People

              • Assignee:
                tomwhite Tom White
                Reporter:
                tomwhite Tom White
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: