Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3411

Solrj doesn't have correct dependencies in pom

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.6
    • Fix Version/s: None
    • Component/s: clients - java
    • Labels:
      None

      Description

      The the released pom for solrj 3.6.0 doesn't include the require dependency to httpclient 4.1.3. If I look to the grandparent, I can see that it is dependency managed, but it does appear as an actual dependency. When trying to use org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer, one gets a compile error:

      class file for org.apache.http.client.HttpClient not found
      solr = new ConcurrentUpdateSolrServer("http://localhost:8983/solr", QUEUE_SIZE, THREAD_COUNT);

      Putting the dependency in fixes the problem, but that isn't something the developer should have to do.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sarowe Steven Rowe
                Reporter:
                rfrovarp Richard Frovarp
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: