Questions tagged [dependency-management]

The management of dependencies, for example third party libraries, that are used by a software project.

The management of dependencies, for example third party libraries, that are used by a software project. This handles storage and distribution of these dependency artifacts, as well as version management for them.

2928 questions
86
votes
9 answers

Gradle Test Dependency

I have two projects, project A and Project B. Both are written in groovy and use gradle as their build system. Project A requires project B. This holds for both the compile and test code. How can I configure that the test classes of project A…
83
votes
2 answers

When to use "optional" dependencies and when to use "provided" scope?

Dependencies decorated by true or provided will be ignored when they are dependent transitively. I have read this, and my understanding is like the difference between @Component and @Service in Spring, they only…
qining.shi
  • 845
  • 1
  • 6
  • 4
80
votes
7 answers

Sort maven dependencies in Eclipse

Just wanted to know if it is possible in Eclipse to sort Maven dependencies by alphabetical order? It's bothering me to have a list of 200 jars not ordered... :(
Sebastien Lorber
  • 89,644
  • 67
  • 288
  • 419
79
votes
3 answers

How to set order of repositories in Maven settings.xml

I have 3 repositories in my settings.xml because I need artifacts from all of them. Whenever a dependency is not found, Maven tries Downloading: http://some.server/mvn2repo/releases/org/apache/lucene/lucene-core/2.9.1/... [INFO] Unable to find…
Peter Kofler
  • 9,252
  • 8
  • 51
  • 79
78
votes
17 answers

Correct way to check Java version from BASH script

How can I check whether Java is available (in the PATH or via JAVA_HOME) from a bash script and make sure the version is at least 1.5?
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
77
votes
6 answers

How do I prevent Maven from downloading artifacts every time?

I’m using Maven 3.1.1. In one of my projects, I reference another one of my projects … org.mainco.subco myprojectA
Dave
  • 15,639
  • 133
  • 442
  • 830
76
votes
6 answers

How can I version bump all my dependencies?

Having yarn outdated is quite informative but I'd like to avoid running over package by package doing yarn upgrade. From yarn's documentation, just yarn upgrade without arguments is said to upgrade all dependencies but there's no change in my…
tutuca
  • 3,444
  • 6
  • 32
  • 54
75
votes
6 answers

Do you know the Maven profile for mvnrepository.com?

I am trying to include some dependencies in my Maven project. These dependencies are not available in the default Maven 2 repository http://repo1.maven.org/maven2/. They are available at http://mvnrepository.com/. But I couldn't find the profile for…
user786045
  • 2,498
  • 4
  • 22
  • 18
67
votes
9 answers

Gradle: Override transitive dependency by version classifier

One of the dependencies declared in my project has a transitive dependency on 'com.google.guava:guava:15.0'. But my application deployed on WAS/Weblogic doesn't work due to a CDI issue which has been fixed in 'com.google.guava:guava:15.0:cdi1.0'.…
dinup24
  • 1,652
  • 3
  • 16
  • 26
67
votes
1 answer

How to specify a classifier in a gradle dependency's dependency?

Say I want to add guice-assistedinject as a dependency in my project. It specifies the guice artifact as a dependency itself. How do I tell it to use the no_aop version of guice? I know I can do the following, but can I do it in one step without…
jgrowl
  • 2,117
  • 2
  • 17
  • 23
62
votes
3 answers

How to check pom.xml for updated dependencies

I am fairly new to Maven and pom.xml. Is there a way I can find out which of my dependencies that are outdated, so that I can update version numbers in my pom.xml. In other languages, for instance, Ruby has the command gem list outdated that gives…
Jesper Rønn-Jensen
  • 106,591
  • 44
  • 118
  • 155
60
votes
12 answers

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath

I think some module in spring-boot-starter-security is conflict with log4j, but I don't know which one. my gradle dependence is as…
newbie
  • 1,157
  • 2
  • 9
  • 17
58
votes
2 answers

How to resolve NuGet dependency hell

I develop a library with some functional named CompanyName.SDK which must be integrated in company project CompanyName.SomeSolution CompanyName.SDK.dll must be deployed via NuGet package. And CompanyName.SDK package has a dependency on 3rd party…
v.karbovnichy
  • 3,183
  • 2
  • 36
  • 47
57
votes
2 answers

In a Maven multi-module project, how can I disable a plugin in one child?

I have a maven multi-module project (boy, I've written that opening way too many times on this site). Almost all the modules (that is, the ones that have code in them) should run the maven-site-plugin to generate reports about code coverage, etc. …
Coderer
  • 25,844
  • 28
  • 99
  • 154
56
votes
7 answers

How can I make Heroku install devDependencies?

I would like to have Heroku build my app after I push it so that I don't have to push the build folder up every time I make a change. However Heroku only installs the dependencies from the package.json and grunt (my build tool) and all of its…
ionox0
  • 1,101
  • 2
  • 14
  • 21