Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
12826 questions
6
votes
3 answers

Maven Dependency Conflict

A maven project consisting of some modules. One of my module is using guava dependency of google version 11.0.2. Now i am integrating another module in my project which is also using guava but version 14. So i want that new module uses guava…
Amol Sharma
  • 1,521
  • 7
  • 20
  • 40
6
votes
2 answers

require.js dependency analysis tool

How to detect circular dependencies from a project built using requir.js? For instance /* File: MyView.js */ define(['backbone','views/myview','object_x'], function(BB,V,X){ ... }); /* File: Object_X.js…
user1406062
  • 833
  • 5
  • 15
6
votes
2 answers

Project references v NuGet dependencies

I am in the process of introducing NuGet into our software dev process, both for external binaries (eg Moq, NUnit) and for internal library projects containing shared functionality. TeamCity is producing NuGet packages from our internal library…
David White
  • 3,014
  • 1
  • 32
  • 35
6
votes
1 answer

Dependencies versions conflicts on node.js

I'm new to the node.js world and I was asking how I could handle dependencies versions conflics (which often appears with transitive dependencies): on the internet found only this article useful for me…
reallynice
  • 1,289
  • 2
  • 21
  • 41
6
votes
2 answers

Writing dependencies in makefile, with makefile

Based on some SO questions -- and some further reference found --, I'm trying to build a makefile able to: find, given the directories in $(SRC), the .cpp files to be compiled; compile the .cpp, producing .o objects; generate .so shared objects…
Rubens
  • 14,478
  • 11
  • 63
  • 92
6
votes
4 answers

Oozie + Sqoop: JDBC Driver Jar Location

I have a 6 node cloudera based hadoop cluster and I'm trying to connect to an oracle database from a sqoop action in oozie. I have copied my ojdbc6.jar into the sqoop lib location (which for me happens to be at:…
nemo
  • 1,504
  • 3
  • 21
  • 41
6
votes
5 answers

StringEscapeUtils can not be resolved

I have added the dependency in pom.xml org.apache.commons commons-lang3 3.1 but when i update maven dependencies…
Shahzeb Khan
  • 3,582
  • 8
  • 45
  • 79
6
votes
1 answer

Install transitive bitbucket dependencies via pip

The situation I'm trying to resolve is installing a package from a private repository on bitbucket which has it's own dependency on another private repository in bitbucket. I use this to kick off the install: pip install -e…
markdsievers
  • 7,151
  • 11
  • 51
  • 83
6
votes
3 answers

linux/gcc: ldd functionality from inside a C/C++ program

Is there a simple and efficient way to know that a given dynamically linked ELF is missing a required .so for it to run, all from the inside of a C/C++ program? I need a program with somewhat similar functionality as ldd, without trying to execute…
royconejo
  • 2,213
  • 3
  • 24
  • 29
6
votes
2 answers

usemin revved filenames and requirejs dependencies

I'm running into the following problem with requirejs and usemin: I want to setup a multipage application, where I dynamically load modules that only contain page specific functionality (e.g. about -> about.js, home -> home.js). I could go ahead and…
manuel-v
  • 61
  • 3
6
votes
2 answers

Creating/Accessing Maven repository in SVN through NetBeans 6.7 *Revised*

EDIT: Ok... so I've gathered that SVN shouldn't really be used for this... which makes sense, I suppose (why version individual files when the version should be a separate jar?). So we should use an internal server to host a repository management…
Buns of Aluminum
  • 2,439
  • 3
  • 26
  • 44
6
votes
2 answers

Excluding nested transitive dependency in maven

My project depends on jparsec, which depends on cglib, which depends on asm. My project also directly depends on asm, but a newer version than the one cglib depends on: It seems I cannot exclude asm from my jparsec dependency. When I attempt to…
Kent Boogaart
  • 175,602
  • 35
  • 392
  • 393
6
votes
2 answers

How to initialize classes dependent on each other, in Java?

Say I have the class signatures Class1(Class2 c); Class2(Class1 c); How do I initialize both?
mchlsctt
  • 115
  • 2
  • 5
6
votes
4 answers

What is the right way to load dependencies in PHP?

I have a doubt about the right way/best practice about loading dependent classes in PHP. I usually put all dependencies in the beginning of each class with a include_once in a way similar to Java imports. Something like: include_once…
Renato Dinhani
  • 35,057
  • 55
  • 139
  • 199
6
votes
1 answer

how to make maven build dependent project

I have project with several dependencies on other project.
Vyacheslav
  • 3,134
  • 8
  • 28
  • 42