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

Solrj doesn't have correct dependencies in pom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.6
    • None
    • clients - java
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: