Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4259

Thrift does not compile due to Ant Maven task errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.3, 0.10.0, 0.11.0
    • Fix Version/s: 0.12.0
    • Component/s: Java - Compiler
    • Labels:
      None
    • Environment:

      Fedora 25, Linux, any project docker image (all use ant 1.9.x)

      Description

      Cannot compile neither 0.9.3 nor 0.10.0
      They both fail with same errors in the Ant / Maven task....
      -----------------------------------------------------------------------------
      ./configure --without-ruby --without-cpp --without-nodejs --without-python --without-go --without-c_glib

      /usr/bin/ant
      Buildfile: /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build.xml

      setup.init:

      mvn.ant.tasks.check:

      proxy:

      mvn.ant.tasks.download:
      [get] Getting: http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
      [get] To: /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build/tools/maven-ant-tasks-2.1.3.jar
      [get] Not modified - so not downloaded

      mvn.init:

      BUILD FAILED
      /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build.xml:324: java.lang.NoSuchMethodError: org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
      at org.apache.maven.artifact.ant.AbstractArtifactTask.loadSettings(AbstractArtifactTask.java:328)
      at org.apache.maven.artifact.ant.AbstractArtifactTask.initSettings(AbstractArtifactTask.java:278)
      at org.apache.maven.artifact.ant.AbstractArtifactTask.getSettings(AbstractArtifactTask.java:223)
      at org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalRepository(AbstractArtifactTask.java:212)
      at org.apache.maven.artifact.ant.AbstractArtifactTask.getLocalRepository(AbstractArtifactTask.java:700)
      at org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRepository(AbstractArtifactTask.java:110)
      at org.apache.maven.artifact.ant.Pom.getMavenProject(Pom.java:272)
      at org.apache.maven.artifact.ant.Pom.setGroupId(Pom.java:560)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(IntrospectionHelper.java:1506)
      at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:411)
      at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:527)
      at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:463)
      at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
      at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:200)
      at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)
      at org.apache.tools.ant.Task.perform(Task.java:347)
      at org.apache.tools.ant.Target.execute(Target.java:435)
      at org.apache.tools.ant.Target.performTasks(Target.java:456)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
      at org.apache.tools.ant.Main.runBuild(Main.java:853)
      at org.apache.tools.ant.Main.startAnt(Main.java:235)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

      Total time: 0 seconds

      Totally blocked, cannot install Thrift on my box, critical for our development.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jking3 James E. King III
                Reporter:
                jfurmankiewicz Jacek Furmankiewicz
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: