Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-798

Exclude second Ant JAR from classpath in hdfs builds

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.22.0
    • Fix Version/s: None
    • Component/s: build
    • Labels:
      None

      Description

      I've no evidence that this is a problem, but I have known it to be in different projects:

          [junit] WARNING: multiple versions of ant detected in path for junit 
          [junit]          jar:file:/Users/slo/Java/Apache/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
          [junit]      and jar:file:/Users/slo/.ivy2/cache/ant/ant/jars/ant-1.6.5.jar!/org/apache/tools/ant/Project.class
      

      Somehow Ivy needs to be set up to skip pulling in an old version of Ant in the build -both paranamer-ant and jsp-2.1 declare a dependency on it. If both tools are only ever run under Ant, the ivy.xml file could exclude it, the build file just has to make sure that Ant's own classpath gets passed down.

      1. HDFS-798.patch
        0.3 kB
        Konstantin Boudnik

        Issue Links

          Activity

            People

            • Assignee:
              Konstantin Boudnik
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development