Issues regarding defining builds with well-defined dependencies library versions (for Java mainly using maven's Dependency management)
Questions tagged [build-dependencies]
196 questions
108
votes
4 answers
How can sbt pull dependency artifacts from git?
I've heard (and I know I've seen examples too, if only I can remember where) that sbt can obtain dependencies from a git repo.
I am looking to obtain the dependency harrah/up from github. The repository does not provide any artifact JAR files, only…

Owen
- 38,836
- 14
- 95
- 125
92
votes
6 answers
Maven + Spring Boot: Found multiple occurrences of org.json.JSONObject on the class path:
When I run mvn test I get this warning. How can I fix it?
Found multiple occurrences of org.json.JSONObject on the class path:
jar:file:/C:/Users/Chloe/.m2/repository/org/json/json/20140107/json-20140107.jar!/org/json/JSONObject.class
…

Chloe
- 25,162
- 40
- 190
- 357
59
votes
7 answers
How should I manage dependencies across projects in an Xcode workspace?
I'm working on an iOS app project, and add the json-framework project to the workspace. The project navigator on the left shows both projects, and the build scheme selector shows the schemes from both projects too. Now I want to add the libjson.a…
user23743
57
votes
8 answers
How to get Maven dependencies printed to a file in a readable format?
I am working on a big projects with many pom.xml files and I need to specify all the libraries that I use. This means that I need to read pom.xml files recursively and get groupId, artifactId, scope and version. I checked out mvn dependency:tree but…

why_vincent
- 2,172
- 9
- 33
- 49
55
votes
7 answers
Xcode : Adding a project as a build dependency
Im playing around with the soundcloud api, in its instructions it says to
drag SoundCloudAPI.xcodeproj into your project
add it as a build dependency
I can drag the project in pretty easily, but how does one accomplish the next step?

Aran Mulholland
- 23,555
- 29
- 141
- 228
52
votes
1 answer
Maven managed dependencies - resolving ${project.version} from parent pom
How is placeholder ${project.version} resolved for managed properties from parent pom? I've expected that it is resolved globally, so when the parent pom has version 2, ${project.version} would also be resolved to version 2.
In parent pom I…

Danubian Sailor
- 1
- 38
- 145
- 223
29
votes
1 answer
CMake rejects a second target_link_libraries talking about "keyword" vs "plain"
I'm compiling a binary, and I want to add its dependency libraries in two different target_link_libraries() commands for various reasons.
My commands look like this:
target_link_libraries(my_prog PRIVATE foo bar)
target_link_libraries(my_prog…

einpoklum
- 118,144
- 57
- 340
- 684
25
votes
4 answers
How does one handle third party libraries with completely different build systems?
The C++ (and C, though it matters less there) standard states that all translation units in a program need to have the same definition; and that includes things like compiler switches. For instance, on MSVC++, one must link to the right version of…

Billy ONeal
- 104,103
- 58
- 317
- 552
22
votes
1 answer
Add all files under a folder to a CMake glob?
I've just read this:
CMake - Automatically add all files in a folder to a target?
With the answer suggesting a file glob, e.g.:
file(GLOB "*.h" "*.cpp")
now, what if I want my target to depend on all files of a certain type under a certain folder -…

einpoklum
- 118,144
- 57
- 340
- 684
17
votes
1 answer
Xcode 4: How to Add Static Library Target Dependency to Project
I know, this has been asked a few times, but mostly for Xcode 3.x. For the iPad, I have two projects both living in a common workspace
Foo, a view-based application and
Foolib, a static Cocoa-Touch library
the former depending on the latter. I…

McKrassy
- 961
- 2
- 10
- 19
14
votes
2 answers
Get list of dependencies runtime
Recently i was doing some research work on Android Dependencies and one question stuck on my mind. Question is can we get list of dependencies by using java code?
For example dependencies in my build.gradle file
dependencies {
compile…

Ravi
- 34,851
- 21
- 122
- 183
13
votes
1 answer
Using Gradle with native dependencies
I am trying to use Sigar in a Gradle project. Sigar distribution is by default provided with 2 types of files:
a JAR that contains classes
some native files (.so, dylib, .dll)
My purpose is to repackage these files so that I can use them as…

Laurent
- 14,122
- 13
- 57
- 89
11
votes
1 answer
Gradle cannot find Maven parent dependency with version RELEASE
I've got a "project B" with a pom.xml like this:
org.company
projectA
RELEASE
projectB
0.0.1
where "project…

Borja Gorriz
- 143
- 9
10
votes
1 answer
How can I add jitpack.io as a repository in my build.gradle correctly?
I want to use Stepper-Touch github library. For this I have to add jitpack.io in
allproject{
repositories{
[here]
}
}
in my build.gradle project file. There isn't
allproject{...}
section, so I added it myself, but i got this…
user15433749
10
votes
4 answers
How to create own gradle dependency library in Android Studio?
For developing android applications by using Android Studio, generally we used to add dependencies in build.gralde instead of adding jars or libraries. Example given below
compile 'com.android.support:support-v4:23.4.0'
compile…

sandeepmaaram
- 4,191
- 2
- 37
- 42