Hi,
you have to use:
mvn:org.apache.httpcomponents/httpcore-osgi/4.4.1
and
mvn:org.apache.httpcomponents/httpclient-osgi/4.4.1
both on central.
Regards
JB
On 08/20/2015 07:11 AM, abhilashb wrote:
Hello,
When tried to install httocore getting below error -
Please help me.
Caused by: org.osgi.framework.BundleException: Unable to cache bundle:
mvn:org.apache.httpcomponents/httpcore/4.4.1
at org.apache.felix.framework.Felix.installBundle(Felix.java:2870)
at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165)
at org.apache.karaf.bundle.command.Install.doExecute(Install.java:43)
... 30 more
Caused by: java.io.IOException: Error resolving artifact
org.apache.httpcomponents:httpcore:jar:4.4.1: Could not transfer artifact
org.apache.httpcomponents:httpcore:jar:4.4.1 from/to central
(http://repo1.maven.org/maven2/): Error transferring file: repo1.maven.org
at
org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:258)
at
org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:239)
at
org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:223)
at
org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:122)
at
org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:524)
at
org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)
at
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:77)
at
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:878)
at
org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:550)
at
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:153)
at
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:277)
at org.apache.felix.framework.Felix.installBundle(Felix.java:2866)
... 32 more
Regards,
Abhilash B.
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-issue-http-client-related-tp4041922p4041960.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com