java - missing requirement osgi.wiring.package; (osgi.wiring.package=org.apache.http) -


i want use httpclient in project.

pom.xml

.............  <dependency>             <groupid>org.apache.httpcomponents</groupid>             <artifactid>httpclient-osgi</artifactid>             <version>4.5.1</version>         </dependency>         <dependency>             <groupid>org.apache.httpcomponents</groupid>             <artifactid>httpclient</artifactid>             <version>4.5.1</version>         </dependency>         <dependency>             <groupid>org.apache.httpcomponents</groupid>             <artifactid>httpcore</artifactid>             <version>4.4.4</version>         </dependency> <build>         <plugins>             <plugin>                 <groupid>org.apache.felix</groupid>                 <artifactid>maven-bundle-plugin</artifactid>                 <extensions>true</extensions>                 <configuration>                     <instructions>                         <_wab>src/main/webapp/</_wab>                         <bundle-symbolicname>                             ${project.groupid}.${project.artifactid}                         </bundle-symbolicname>                         <import-package>                             *,!com.google.gson                         </import-package>                         <embed-dependency>gson</embed-dependency>                         <export-package>                             org.apache.http.httpentity                         </export-package>                         <web-contextpath>${web.context}</web-contextpath>                     </instructions>                 </configuration>             </plugin> .................. 

error message:

java.lang.illegalstateexception: can't install feature test/0.0.0: not start bundle mvn:ttt/test/1.0-snapshot in feature(s) test-1.0-snapshot: unresolved constraint in bundle ttt.test [234]: unable resolve 234.0: missing requirement [234.0] osgi.wiring.package; (osgi.wiring.package=org.apache.http)

i thought there mistakes in "build", don't have no idea solve that.

i suppose question related osgi, , osgi container based on karaf (because speaking of 'feature').

it's not related build of bundle : should deploy required runtimes dependencies in container (karaf) : in feature test, add <bundle> tag each bundle need @ runtime (with dependency=true), or add dependency feature install these bundles.

moreover, shouldn't export-package org.apache.http.httpentity : it's not package, class, , package "org.apache.http" provided bundle.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -