Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1379

[Java] maven dependency issues - both unused and undeclared

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Java
    • None

    Description

      There is couple of dependency issues in the current maven config. This is then leaking into the integrating project which then needs to specify foreign dependencies just because arrow doesn't list them properly or is pulling unnecessary dependencies just because arrow lists them improperly.

      Here is the current report for each of the arrow's modules:

      arrow-format
      [WARNING] Unused declared dependencies found:
      [WARNING]    org.slf4j:slf4j-api:jar:1.7.25:compile
      [WARNING]    com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
      [WARNING]    io.netty:netty-handler:jar:4.0.49.Final:compile
      [WARNING]    com.google.guava:guava:jar:18.0:compile
      
      arrow-memory
      [WARNING] Used undeclared dependencies found:
      [WARNING]    io.netty:netty-buffer:jar:4.0.49.Final:compile
      [WARNING]    io.netty:netty-common:jar:4.0.49.Final:compile
      [WARNING] Unused declared dependencies found:
      [WARNING]    com.carrotsearch:hppc:jar:0.7.2:compile
      [WARNING]    io.netty:netty-handler:jar:4.0.49.Final:compile
      
      arrow-tools
      [WARNING] Used undeclared dependencies found:
      [WARNING]    com.fasterxml.jackson.core:jackson-databind:jar:2.7.9:compile
      [WARNING]    com.fasterxml.jackson.core:jackson-core:jar:2.7.9:compile
      [WARNING] Unused declared dependencies found:
      [WARNING]    org.apache.commons:commons-lang3:jar:3.6:compile
      [WARNING]    org.apache.arrow:arrow-format:jar:0.7.0-SNAPSHOT:compile
      [WARNING]    io.netty:netty-handler:jar:4.0.49.Final:compile
      
      arrow-vector
      [WARNING] Used undeclared dependencies found:
      [WARNING]    com.google.code.findbugs:jsr305:jar:3.0.2:compile
      [WARNING]    com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
      [WARNING]    io.netty:netty-common:jar:4.0.49.Final:compile
      [WARNING]    io.netty:netty-buffer:jar:4.0.49.Final:compile
      [WARNING]    com.fasterxml.jackson.core:jackson-core:jar:2.7.9:compile
      [WARNING] Unused declared dependencies found:
      [WARNING]    org.apache.commons:commons-lang3:jar:3.6:compile
      [WARNING]    io.netty:netty-handler:jar:4.0.49.Final:compile
      

      I am proposing to add the maven-dependency-plugin to guard the dependency configuration always stays consistent.

      Attachments

        Activity

          People

            antonymayi Antony Mayi
            antonymayi Antony Mayi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: