Apache httpclient must be included in compile scope
The apache http libraries are not osgi bundles. Including them as
provided scope does not work as the required import-package statements
are not added to the jar manifest.
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- <scope>provided</scope>
- <optional>true</optional> <!-- Only needed for classes in com.yahoo.security.tls.https -->
- </dependency>
<!-- compile scope -->
<dependency>
<artifactId>jackson-databind</artifactId>
<scope>compile</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpcore</artifactId>
+ <scope>compile</scope>
+ </dependency>
<!-- test scope -->
<dependency>
