lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michiel Verkaik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3411) Solrj doesn't have correct dependencies in pom
Date Wed, 02 May 2012 20:30:50 GMT

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

Michiel Verkaik commented on SOLR-3411:
---------------------------------------

I ran into a dependency issue too when using the new HttpSolrServer class.  I resolved by
adding the following 2 dependencies to my POM:


        <dependency>
        	<groupId>org.apache.httpcomponents</groupId>
        	<artifactId>httpclient</artifactId>
        	<version>4.1.3</version>
        </dependency>
        <dependency>
        	<groupId>org.apache.httpcomponents</groupId>
        	<artifactId>httpmime</artifactId>
        	<version>4.1.3</version>
        </dependency>

                
> Solrj doesn't have correct dependencies in pom
> ----------------------------------------------
>
>                 Key: SOLR-3411
>                 URL: https://issues.apache.org/jira/browse/SOLR-3411
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java
>    Affects Versions: 3.6
>            Reporter: Richard Frovarp
>            Assignee: Steven Rowe
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message