Questions tagged [dependency-resolution]

Dependency resolution is the process of resolving declared/required dependencies and any potential transitive dependency through the concerned dependencies graph, for instance during a build of a software product.

Dependency resolution is the process of resolving declared/required dependencies and any potential transitive dependency through the concerned dependencies graph, for instance during a build of a software product.

Well known build tools like , or make use of dependencies and handle dependencies resolution as part of their core mechanisms.

More Info

41 questions
144
votes
17 answers

Maven fails to find local artifact

Occasionally maven complains that a particular dependency, which is built and packaged locally, cannot be found in the local repository while building another project that has it as a dependency. We get an error like: Failed to execute goal on…
user1686620
  • 2,801
  • 4
  • 18
  • 21
102
votes
13 answers

Maven Build Failure -- DependencyResolutionException

I'm installing a package that has Maven dependency and get a DependencyResolutionException when I try to clean it. After cloning it, I navigate to the directory and run the following to install it with no error: mvn install:install-file…
Moe Obaid
  • 1,123
  • 2
  • 4
  • 6
33
votes
2 answers

Why doesn't Gradle or Maven have a dependency version lock file?

I've recently been introduced to the concept of a dependency version lock file when reading about package managers like NPM, Yarn, Paket, Cargo, etc. My understanding is that it is a file that lists all direct and transitive dependencies along with…
jmrah
  • 5,715
  • 3
  • 30
  • 37
9
votes
3 answers

Why gradle doesn't search for dependency in other maven repos?

Why does gradle not searching for dependency in ALL defined maven repos? Repos block is defined: repositories { maven { name = 'JBoss.org Maven repository' url 'https://repository.jboss.org/nexus/content/groups/public' } …
head_thrash
  • 1,623
  • 1
  • 21
  • 26
7
votes
3 answers

Failed to resolve: support-compat ONLY FOR :27.1.1

I have an android module with this build.gradle file: apply plugin: 'com.android.library' android { compileSdkVersion 27 defaultConfig { minSdkVersion 14 targetSdkVersion 27 …
7
votes
1 answer

Gradle How can i specify the cacheResolutionStrategy for the SNAPSHOT version in my buildscript block?

I am having problems with resolutionStrategy.cacheChangingModulesFor. My project build.gradle looks similar to this apply plugin: 'base' apply plugin: 'maven' apply plugin: 'maven-publish' apply from:…
wrossmck
  • 369
  • 8
  • 21
7
votes
6 answers

Maven can't find dependencies [dependencyResolutionException]

I added a Maven dependency to my project and my project compiles locally, while it doesn't compile on server. It can not resolve the newly added dependency. This is my pom.xml file:
lapots
  • 12,553
  • 32
  • 121
  • 242
5
votes
2 answers

How can I download and reference a single artifact in Gradle?

I am creating a Gradle task in which I want to download and reference the jar file for an artifact that exists in a Maven repository. Specifically, I plan to call an external script through the Gradle exec task using the location of that jar as an…
M. Justin
  • 14,487
  • 7
  • 91
  • 130
5
votes
1 answer

gradle force version of transitive dependency not working. No exclude, override or force seems to apply

I have a conflict with a transitive dependency. Overriding, excluding or forcing does not help. What else can I do to get the right version of the library into the jar? The full code dan be. found…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
4
votes
0 answers

Autofac and Microsoft.Bcl.AsyncInterfaces

Visual Studio 2019 provides an unannounced 4.700.19.56404 version of Microsoft.Bcl.AsyncInterfaces here: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Bcl.AsyncInterfaces Autofac accepts 1.1.0 or…
Matt Davis
  • 45,297
  • 16
  • 93
  • 124
4
votes
0 answers

Should a JS package have a shrinkwrap?

I understand that using npm shrinkwrap helps to lock down dependencies to help guarantee a replicable build for an application. My question is, what if you're building a module instead of an application? Should each release of the module include a…
M Miller
  • 5,364
  • 9
  • 43
  • 65
3
votes
1 answer

how does gradle resolve conflicting dependency versions

Say I have 3 modules with 3 different build.gradle property files. Module A v1 has the following entries in build.gradle ATLAS_VERSION = 1 Module B v1 has the following entries in build.gradle ATLAS_VERSION = 2 MODULE_A_VERSION = 1 Module C v1 has…
Klaus Nji
  • 18,107
  • 29
  • 105
  • 185
3
votes
1 answer

Dependency Resolution Exception in netbeans maven web application for spring-framework-bom:jar:4.0.1.RELEASE

I created a maven web application from Netbeans IDE and then from project properties added the spring framework. Then I built the project. I get the following error. Failure to find org.springframework:spring-framework-bom:jar:4.0.1.RELEASE in…
Shanika Ediriweera
  • 1,975
  • 2
  • 24
  • 31
2
votes
1 answer

API and implementation dependencies in .NET/Nuget, just like in Java/Gradle?

Scenario: I want to create and publish a library. In the Java world: Using Gradle, I create a project using the java-library Gradle plugin. I can specify the dependencies using both the api configuration and the implementation configuration. This…
domin
  • 1,192
  • 1
  • 7
  • 28
2
votes
0 answers

spark resolve external packages behind corporate artifactory

I want to resolve packages in spark when behind a corporate Artifactory: spark-shell --repositories https://bin.mycorp.com/artifactory/maven/ --packages io.delta:delta-core_2.12:0.7.0 simply doesn't resolve for me. In the logs I find: found…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
2 3