qcri-social / AIDR

Artificial Intelligence for Digital Response
http://aidr.qcri.org/
GNU Affero General Public License v3.0
98 stars 37 forks source link

Missing dependency when building AIDRTrainerAPI #2

Closed ajgbangug closed 10 years ago

ajgbangug commented 10 years ago

Hi, I tried to build AIDRTrainerAPI but I came across this error:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[3,22] error: package org.apache.http does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[4,29] error: package org.apache.http.client does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[5,37] error: package org.apache.http.client.methods does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[6,37] error: package org.apache.http.client.methods does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[7,37] error: package org.apache.http.client.methods does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[8,29] error: package org.apache.http.entity does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[9,34] error: package org.apache.http.impl.client does not exist
[ERROR] /vagrant_data/aidr-trainer-api/src/main/java/qa/qcri/aidr/trainer/api/util/Communicator.java:[34,8] error: cannot find symbol

I ended up adding this to its pom.xml in order for it to build

    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.1.1</version>
    </dependency>
jikimlucas commented 10 years ago

@ajgbangug please check latest pom file. somehow, pom file never has been updated. please recompile and let me know.

jikimlucas commented 10 years ago

pushed outdated pom.xml.

koushiksinha commented 10 years ago

@ajgbangug https://github.com/ajgbangug, I reproduced your error and found a fix on my local machine. Can you please retry with the following 2 files?