CB-7718 CB-7677 CordovaLib fails when installing transitive dependencies

https://issues.apache.org/jira/browse/CB-7718
https://issues.apache.org/jira/browse/CB-7677