[ 
https://issues.apache.org/jira/browse/THRIFT-4259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16325201#comment-16325201
 ] 

James E. King, III commented on THRIFT-4259:
--------------------------------------------

Remember that we use autoconf on linux and cmake on windows; and there is a 
java target in both of them that delegates to the current ant build.  This 
delegation should absolve autoconf and cmake from all dependency management 
(this is probably how it is today).  I am changing the PR for THRIFT-4434, for 
example, so that autoconf always calls "dotnet build" and never tries to 
calculare dependencies.  It sounds like we should do the same for Java since 
the build is managed by another environment.

If you can satisfy the other related issues with the same set of changes it 
would be pretty neat.  Also there's enough integration testing in the CI builds 
to catch any problems getting things built, so leverage the docker environment 
(ubuntu-xenial) and the build/docker/scripts/autoconf.sh script, which 
essentially builds the project and runs "make check" (unit tests) like Travis 
CI; and the script build/docker/scripts/cross-test.sh runs "make cross" 
(integration tests) like Travis CI.

> Thrift does not compile due to Ant Maven task errors
> ----------------------------------------------------
>
>                 Key: THRIFT-4259
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4259
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Compiler
>    Affects Versions: 0.9.3, 0.10.0, 0.11.0
>         Environment: Fedora 25, Linux, any project docker image (all use ant 
> 1.9.x)
>            Reporter: Jacek Furmankiewicz
>            Priority: Blocker
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to