Closed MaheshIBM closed 7 years ago
The cloudant-http
dependency is a required dependency of the cloudant-client
artifact and is declared as such in the cloudant-client
pom.xml
as you can see here:
https://repo1.maven.org/maven2/com/cloudant/cloudant-client/2.10.0/cloudant-client-2.10.0.pom
<dependency>
<groupId>com.cloudant</groupId>
<artifactId>cloudant-http</artifactId>
<version>2.10.0</version>
<scope>compile</scope>
</dependency>
It shouldn't be added to the list of dependencies in the README.md
because a consuming project should only have a dependency on cloudant-client
, correct parsing of the pom will bring in any transitive dependencies required.
Adding cloudant-http
directly to the consuming project's pom.xml
could lead to problems in future, for example if we changed cloudant-client
dependencies, because the consuming project might inadvertently pull an un-needed dependency.
As you've said the problem is not reproducible, so it sounds like you had some Maven blip or something.
Thanks and sorry for the trouble, Clearly seems like a problem with the first time maven tried to download the dependencies.
CloudantClient (java-cloudant) version(s) that are affected by this issue. 2.10.0
Java version (including vendor and platform). java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
If you're using the optional okhttp dependency. Yes
A small code sample that demonstrates the issue.
import java.util.List; import java.net.MalformedURLException; import java.net.URL;
import com.cloudant.client.api.ClientBuilder; import com.cloudant.client.api.CloudantClient; public class Program {
}
But I cannot reproduce the issue even after I now delete the dependency from pom.xml. It may help to include this dependency in the list of dependencies to use cloudant-client.