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
2 answers

Maven build : How to resolve the workspace artifacts without installing them to repo and without using m2eclipse

I've worked a little with m2eclipse in Eclipse Indigo and now I'm trying to use Maven from command line without Eclipse and without m2eclipse plugin. The m2eclipse has abililty to resolve the artifacts from the workspace without installing them to…
natan bolik
  • 61
  • 1
  • 2
6
votes
4 answers

Java, Maven: SLF4J error during build

I'm working on a Java project and building it with Maven (m2e). When I do a mvn clean install I get this error first thing: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger…
ksnortum
  • 2,809
  • 4
  • 27
  • 36
6
votes
2 answers

Why is Visual Studio 2012 running custom build step when source file hasn't been changed?

I'm using yacc and lex with Visual Studio 2012 C++/CLI and have created a custom build step for the yacc source file as shown in image below There are two dependencies for the output file. They are the yacc source file icl5kyacc.y and the…
JonN
  • 2,498
  • 5
  • 33
  • 49
6
votes
1 answer

GCC and Precompiled Headers

After reading this nice article (The Care and Feeding of Pre-Compiled Headers), I have some doubts regarding how these can actually work in real life. More specifically, how can I know that I need to trigger the rebuild of the pre-compiled header in…
Mihai Todor
  • 8,014
  • 9
  • 49
  • 86
6
votes
1 answer

How can I use MEF to manage interdependent modules?

I found this question difficult to express (particularly in title form), so please bear with me. I have an application that I am continually modifying to do different things. It seems like MEF might be a good way to manage the different pieces of…
Tom Wright
  • 11,278
  • 15
  • 74
  • 148
6
votes
2 answers

How can I inherit project dependencies/references from one project to a dependent project in Visual Studio

I have Project 1 with dependencies to Boost and GLM. For Boost and GLM, I've specified the 'Additional Include Directories' to reference the C++ files for each. Project 1 is created as a static library project. When I build Project 1, everything…
6
votes
3 answers

How do you share external dependencies between Visual Studio solutions?

I have a Java background so I’m used to having Maven handle all problem around downloading and keeping dependencies up to date. But in the .NET environment I have not yet found a good way to manage all these external dependencies. The main problem…
Ola Herrdahl
  • 4,216
  • 3
  • 29
  • 23
6
votes
3 answers

how to install c library on linux (in particular SDL_image)

What is the general approach to installing c libraries on Linux? In particular, I would like to install this library, with the objective to compile this: #include // it errs that it does not recognize this int main() { } What I have…
dandroid
  • 395
  • 1
  • 3
  • 12
6
votes
4 answers

Cyclic Dependencies

Consider a normal customer-orders application based on MVC pattern using WinForms. The view part has grown too much (over 4000 files) and it needs to be split into smaller ones. For this example we are going to use 3 projects for the view…
Ovi
  • 2,620
  • 7
  • 34
  • 51
6
votes
1 answer

Deploying multiple 3rd party JARs to global (internal) Maven nexus

I have a load of 3rd party JAR files (around 40 different JARs from various SDKs I'm using) sitting in a folder on my hard drive. I want to declare those JARs as dependencies in my future maven projects. I cannot obtain those JARs from the worldwide…
HombreFab
  • 223
  • 1
  • 4
  • 7
6
votes
1 answer

Eclipse RCP - all possibilities to define dependencies?

Is there somewhere a list of all possibilities, to define dependencies in an Eclipse RCP project? maybe filtered by resources? Possible dependencies: from other Eclipse RCP Plugins by package, without explicitely defining the plugin jar libs ...
Skip
  • 6,240
  • 11
  • 67
  • 117
6
votes
3 answers

"make clean" doesn't clean dependencies with Automake?

I have a C++ project which uses Autoconf and Automake. I decided that there are too many source files in my src directory, and moved some files to a subdirectory. Then, I modified the Makefile.am and changed these files from source.cpp to…
petersohn
  • 11,292
  • 13
  • 61
  • 98
6
votes
3 answers

Bundling a non-open-source dependency with Maven

Suppose I have two Java projects in Maven / Eclipse: An open source application hosted in GitHub A small private library containing utility functions which is not open source (but which I do have the rights to modify, build, and redistribute in…
mikera
  • 105,238
  • 25
  • 256
  • 415
6
votes
2 answers

Play framework and sbt: passing credentials to a nexus passowrd protected repo

I need to define as a dependency the following library: url: http://deploy.cloud.testmx.com:8081/nexus/content/groups/public/ user: testmx pass: testmx@testmx groupId: testmx artifactId: testmxcommons version: 1.0.0-SNAPSHOT So I defined the…
opensas
  • 60,462
  • 79
  • 252
  • 386
6
votes
1 answer

Autosys R11 job dependency with dependent-job run-time condition

In Autosys R11, I need job_b to run only if job_a succeeded within the last X hours. Apparently, R11 allows you to "set look back dependencies on job_a to only run if job_c has ran to S within X hours." What would be the syntax? s(job_a) What would…
anomal
  • 2,249
  • 2
  • 19
  • 17