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

How to figure out which JARs are actually being used?

I am trying to figure out which JAR libraries, out of a total of 83 JARs, are actually being used by a group of 12 Java EE/Spring projects. All JARs are under one EAR. Development is done in Eclipse and the build tool is Ant. All projects run on…
roark
  • 792
  • 1
  • 12
  • 29
6
votes
4 answers

Resolving Maven circular dependencies between test, testhelper, and project-under-test

my set up is this. I have project A, and a test project depending on A: A <- A_t I also have other projects depending on A (and their tests): A <- B <- B_t To simplify some of the testing I introduce a new library helping test stuff based on A: A…
6
votes
3 answers

Smarter Native Dependency Handling with Maven

I'm currently in the midst of converting a large multi-module project (~100 sub-modules) to use Maven. Currently we use Ant + Ivy. So far no major issues have cropped up and I'm comfortable that Maven is still a good fit. However, I wonder if there…
S73417H
  • 2,661
  • 3
  • 23
  • 37
5
votes
1 answer

RequireJS - Managing Modules Centrally

Maybe I missed this in the documentation somewhere but here goes. I've got a core controller that takes care of managing modules. I have about 20 modules so far and would like to be able to easily configure them to be loaded by the core. This means…
backdesk
  • 1,781
  • 3
  • 22
  • 42
5
votes
1 answer

LibreOffice Maven Dependencies?

I am trying to run LibreOffice's examples in a small Maven project. Netbeans does not seem to find dependencies in Maven. For example: import com.sun.star.awt.Point; It seems hard to believe that LibreOffice's dependencies are not available in…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
5
votes
2 answers

How to copy native libraries to the unit test staging directory in Visual Studio 2010

My project has dependencies on some native libraries (DLLs) that I normally copy via the MSBuild targets into the output directory. There is no problem when I run the application, but I am writing some unit tests in Visual Studio and every time I…
Kiril
  • 39,672
  • 31
  • 167
  • 226
5
votes
1 answer

Why does Maven download different versions of Spring artifacts?

In my Maven project I have defined a bunch of Spring dependencies, and I notice that in some cases it will choose different versions of the artifacts even though they are specified identically in my pom.xml. This is an outline of mvn…
vrutberg
  • 1,981
  • 1
  • 20
  • 28
5
votes
1 answer

How do I create a row specific sql cache dependency?

I want to use data caching on my .net C# application. So far I added data caching and added sql cache dependencies on specific tables. But thats not good enough. These tables will be updated too frequently but not relevant to a lot of the cached…
user107723
  • 105
  • 2
  • 6
5
votes
4 answers

How can I add jars from more than one unmanaged directory in an SBT .scala project configuration

I'm trying to get SBT to build a project that could have more than one unmanaged directory. If I had a single directory, I could easily do it like this: unmanagedBase := file( "custom-libs" ).getAbsoluteFile But since I have two directories with…
Maurício Linhares
  • 39,901
  • 14
  • 121
  • 158
5
votes
1 answer

Job Dependency in RabbitMQ

I am trying to figure out how to best setup the following scenario: Multiple A-type jobs are added into the queue When all A-type jobs are completed, a B or C-type job will be needed (one per A-type job) When all A, B and C type jobs are completed,…
methodin
  • 6,717
  • 1
  • 25
  • 27
5
votes
1 answer

Projects dependencies between C# and C++ project, build order

If both project Alpha and project Beta are C# projects, we can set that Beta depends on Alpha and this results to following build order: 1) Alpha; 2) Beta If project Alpha is C++ project, we cannot add reference from project Alpha to Beta because…
Roman
  • 4,531
  • 10
  • 40
  • 69
5
votes
1 answer

minimum dependencies for JasperReports

I am looking to use JasperReports 4.5.0 in a project of mine and would like to know what are the minimum dependencies for only PDF generation. I tried looking through their site and readme docs and found absolutely nothing. I also came across this…
Danny
  • 7,368
  • 8
  • 46
  • 70
5
votes
2 answers

Publish SNAPSHOT artifacts to Maven using IVY - what's the magic?

We have a slight convoluted situation... For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several…
AndyF
  • 1,074
  • 1
  • 12
  • 19
5
votes
4 answers

Writing a Java library to conditionally handle an input class w/o causing unconditional runtime dependency on that class

I have what seems like a tricky Java library task. I need to write an adapter/helper class for working with JTables that has some additional functionality if the JTable is a JXTable. But I don't want to add a runtime dependency on…
Jason S
  • 184,598
  • 164
  • 608
  • 970
5
votes
4 answers

How to find out which dependencies need to be included?

I'm fairly new to Java/Spring and am trying to put together a simple app which will include some basic CRUD operations and I'd like to use Hibernate for data access. I'm using Maven as my build tool. My question is: how can I find out which…
James
  • 273
  • 2
  • 12