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

Use local m2 repository in docker build stage

I made a Java project which uses an own library, which is installed in my local m2 repository. Now, I'm trying to create a Docker image that generates the jar in a build stage. It fails because it can't resolve dependencies for project of my own…
abarazal
  • 369
  • 6
  • 19
5
votes
2 answers

I can't run apt-get commands. apt --fix-broken install doesn't work. The following packages have unmet dependencies libc6-dbg and libc6-dev

I have Ubuntu 18.04 LTS (Bionic Beaver). When I run sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following…
5
votes
3 answers

Grails: Very slow deploy time. 'Resolving Dependencies...' takes 10+ seconds

Every time I make a minor change to my Grails app it takes 10-15 seconds to deploy it. The majority of the time is in 'Resolving Dependencies'... Welcome to Grails 1.3.7 - http://grails.org/ ... Resolving dependencies... Dependencies resolved in…
Chris
  • 3,552
  • 2
  • 26
  • 36
5
votes
0 answers

How can I change the timeout threshold in SBT dependency resolution?

I have a project using sbt 0.13 that is set up to first try a corporate proxy repository for dependencies, followed by maven and other public repos. When the proxy repo is not available (because I'm out of office, not on a VPN, whatever), sbt takes…
5
votes
2 answers

Why does resolved dependencies differ between Java 8 and Java 11?

Given a very simple Maven project with a single pom-file containing a single dependency:
Magnilex
  • 11,584
  • 9
  • 62
  • 84
5
votes
0 answers

error when migrating to latest version of Firebase/Firestore dependency

my app works perfectly fine when using the dependencies with this version as mention below, but when migrating to the latest version of Firestore dependency my app unable to add or delete data in Firestore, I know the lastest dependency don't need…
5
votes
1 answer

How to install Python 2.7 devel if I have Python 2.7 in a different directory

I have python 2.7 installed in /opt/python2.7. Now i want to install the devel packages for it but could not find it. How can i install it os that goes in python2.7 not for default python2.4
Mirage
  • 30,868
  • 62
  • 166
  • 261
5
votes
0 answers

Is it possible to view Github's Dependency Graph for a specific branch rather than the entire repository?

As the title states, I was wondering if it was possible to view a Dependency Graph in a Github repository for a specific Branch or Tag in that repository, rather than for the entire repository itself, based off of the Master branch. I address a lot…
5
votes
1 answer

Managing dependencies of a Eclipse plug-in project using Maven

I am trying to use Maven for managing the dependencies of my plug-in project. The dependencies are correctly stated in the POM.xml. Even though, I get the exception : java.lang.NoClassDefFoundError Is it the correct way for solving dependencies…
Sou
  • 351
  • 2
  • 11
5
votes
2 answers

for a unit test that has a compileOnly dependency, how can i avoid redeclaring the dependency for availability at runtime?

I am currently using Gradle to build a project, and it has a dependency on a third party component that I need at compile time, but which will be provided at runtime. In maven I would declare this dependency as provided, and in Gradle I declare it…
Chris Bedford
  • 2,560
  • 3
  • 28
  • 60
5
votes
2 answers

Buildroot Python Dependencies (_sqlite3)

Full Disclaimer: I have been using buildroot for the last 6 weeks. This is my first introduction to embedded Linux, thus I am still very green but have been able to solve 99% of my problems myself. for the most part the process has been…
kjn
  • 51
  • 1
5
votes
2 answers

How to handle dependencies when using git topic branch workflow?

In our project we try to stay close to the "official" git workflow as it is suggested here: http://www.kernel.org/pub/software/scm/git/docs/gitworkflows.html We use a master and next branch, start our topic branches off from master, regularly do…
Michael Härtl
  • 8,428
  • 5
  • 35
  • 62
5
votes
1 answer

No matching version found for @babel/helper-validator-identifier@^7.9.5

I had run npm install to install angular dependencies. While installing i'm facing issues with babel
Pavithra Muthusamy
  • 255
  • 1
  • 3
  • 13
5
votes
2 answers

python dependency + deployment tool?

Does anybody know of a tool to handle module dependencies + deployment in Python? Details: By handle, I mean: list, keep track of and bundle up a zip/installable file for me. Make it trivial to redeploy on another system (ie: includes all…
Dirk
  • 3,073
  • 4
  • 31
  • 36
5
votes
2 answers

Determine why each line is present in go.sum

Here's a snippet from a go.sum file for a project I maintain. github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305