- I have to use camel-http component.
- I added the dependencies in the POM file. (Code Listing 1)
- I started getting Unresolved package error for "package=org.apache.commons.httpclient" at Runtime.
- So I have added the dependency for commons-httpclient (Code Listing 2). I added it in embedded-dependency because commons-httpclient is a non-osgi jar.
- I am still getting the same error.
- I also tried adding this package in tag.
Note - I can see the dependencies getting reflected under Import-Package, in the generated MANIFEST file of my bundle jar.
Code Listing 1:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
<version>${camel-version}</version>
<!-- use the same version as your Camel core version -->
</dependency>
Code Listing 2:
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>