Questions tagged [transitive-dependency]

A transitive dependency refers to a code path or datasource which has an indirect dependency, such as an object, function, record, or file.

A transitive dependency requires implicit code or data to exist as a prerequisite to access itself.

References

238 questions
1
vote
2 answers

Cant run Spring integration test because container doesn't start

I am trying to understand why my SpringBoot app is not starting from an integration test. I am completely confused, I don't know if it has to do something to do with my dependencies and how to solve it. This is the test that I am…
javing
  • 12,307
  • 35
  • 138
  • 211
1
vote
1 answer

reproducible npm install without shrinkwrap (ignore packages released after a given date)

Recently I've run into an issue where a new version of some transitive dependency of babel-eslint fails to parse Flow parameterized types. Downgrading babel-eslint didn't work because the newer versions of the transitive deps are semver-compatible…
Andy
  • 7,885
  • 5
  • 55
  • 61
1
vote
2 answers

Maven dependency management being ignored at test time (works at runtime)

I have two dependencies which point to a conflicting version of javax.validation:validation-api. To resolve this, I added a dependencyManagement section with the latest version of the validation-api. While this causes the app to build correct, and…
Ali
  • 261,656
  • 265
  • 575
  • 769
1
vote
0 answers

Difference in transitive dependencies after Maven upgrade 2.2.1 to 3.2.5

My company's infrastructure changed which forced upgrade from Maven 2.2.1 to maven 3.0.5 Structure of my project is one EAR containing a few modules. EAR's dependencies are stored in it's lib folder which is on the classpath, and all of the modules…
1
vote
1 answer

What is the point of an exclusion of a dependency's dependency and re-declaring it?

I've noticed some pattern in projects's poms. There is a dependency graph like this: your Project A -> some other Project B -> B's dependency Project C. Project B is declared as a dependency in A's pom and B's dependency C excluded from B and…
MaxNevermind
  • 2,784
  • 2
  • 25
  • 31
1
vote
1 answer

AAR Transitive Dependency Google Location Service

I have implemented a Library Project called "proximity" in Android Studio and generated an ".aar". This aar I've added to a new test project as an module, as stated here:https://stackoverflow.com/a/24894387/2791503 Furthermore I included the module…
1
vote
1 answer

Maven Transitive Dependency causing NoClassDefFound error

I am getting NoClassDefFoundError while trying to load a class which seems to be due to dependency version conflict. Project A -> Project B -> Project C. We have included version 2.0 for Project C within Project A. whereas Project B needs version…
Vivek Vermani
  • 1,934
  • 18
  • 45
1
vote
2 answers

NoSuchMethodException - method's return type has changed - Want to accept both types

Background I have a commons library that I have to update. This commons library has a third party dependency (jgroups) which was changed significantly in newer versions. Through transitive dependencies, the newer version of jgroups is sometimes…
The Gilbert Arenas Dagger
  • 12,071
  • 13
  • 66
  • 80
1
vote
2 answers

Gradle excludes self when excluding all transitive dependencies

I've com across a particular problem which I have been unable to solve and would be grateful for any help. Originally I included some jar dependencies as artifact only dependencies in my Java project. This looked like the following: compile…
1
vote
1 answer

why is transitive dependency not included my final war?

Somewhat similar question is posted here. But no answers there. I have multi-module maven project when I run mvn dependency:tree, I see the following [INFO] ------------------------------------------------------------------------ [INFO] Building…
brain storm
  • 30,124
  • 69
  • 225
  • 393
1
vote
1 answer

How does maven add transitive dependencies into classpath?

I am quite confused about how does maven handle the transitive dependencies and how does it write to the classpath. Say if I have two paths for E (A,B,C,D,E are ejb): 1. A<---B<---E (E dependent(comile) on B which dependent on A) 2. A<---C<---D<---E…
Yvonne Ye
  • 21
  • 3
1
vote
1 answer

Disable transitive dependencies not working

My project has some dependencies (really many) and I'm adding them in dependency. But I don't want any transitive dependency, that will be out of my control (maven brings me almost three times of what I need). I tried to ban transitive dependency in…
pythonician_plus_plus
  • 1,244
  • 3
  • 15
  • 38
1
vote
1 answer

NPM installing nested dependency when already satisfied by parent

I'm having an issue with NPM installing two copies of React in my project. Here are the relevant parts of the dependencies: My package.json: "dependencies": { "react": "0.12.2", "tcomb-form": "0.4.5" } tcomb-form's…
Sean Adkinson
  • 8,425
  • 3
  • 45
  • 64
1
vote
1 answer

Exclude a transitive JAR dependency in Gradle

I have two projects defined in Gradle, projectA and projectB defined as a multiproject. ProjectA has a dependency with spring1-beans.jar meanwhile ProjectB has a dependency with ProjectA. The problem I got is that ProjectB has also a dependency with…
Jonathan Naguin
  • 14,526
  • 6
  • 46
  • 75
1
vote
1 answer

How to mix ResolutionStrategies with Gradle

Let's say I have the following in my gradle build script: configurations.all { resolutionStrategy { failOnVersionConflict() force 'com.google.guava:guava:18.0' } } This will fail if more than one version of a jar is found, except…
Martin
  • 3,018
  • 1
  • 26
  • 45