Questions tagged [maven-dependency-plugin]

The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location.

The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location.

When using the Maven Dependency Plugin, it is recommended to keep in mind the Maven Dependency Mediation mechanism, what Maven coordinates are and how Maven dependencies are declared and handled.

More information

420 questions
2
votes
1 answer

Why does a test scope dependency add compile scope dependencies?

Why does adding the following result in compile scope dependencies? myproject.core api tests test [INFO] +-…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
2
votes
1 answer

TwelveMonkeys 3.1.1 || 3.1.2 not working with maven-dependency-plugin

I am trying to use TwelveMonkeys in my application to deal with thumbnail generation. Also, I am using maven-dependency-plugin to unpack all dependencies and create a FAT jar. Though, plugin work quite well in normal scenarios, but simply not…
Prakhar Mishra
  • 1,586
  • 4
  • 28
  • 52
2
votes
1 answer

List all the modules of an aggregate POM dependent on a specific dependency

Here's my aggregate POM: ... myAggregate myAggregate ... module1 module2 module3 module4
mystarrocks
  • 4,040
  • 2
  • 36
  • 61
2
votes
1 answer

Output from maven dependency:tree, which version will override

Here is an output from mvn dependency:tree Check the dependencies for kafka. I see it coming at two places and want to know which dependency will come into play when the application is run. [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @…
user2250246
  • 3,807
  • 5
  • 43
  • 71
2
votes
1 answer

How can I find out hidden versions of dependencies and plugins in Maven?

We do not need to specify the versions and other parameters of Maven dependencies and plugins we use. We can do it only once in parent POM or may be in some other way and inherit that properties in our children POMs. Unfortunately for many times I…
MiamiBeach
  • 3,261
  • 6
  • 28
  • 54
2
votes
1 answer

Can maven-release-plugin check for SNAPSHOT versions in artifacts downloaded via maven-dependency-plugin?

We have a Project A that downloads an artifact from another Project B, performs an operation on it, and spits out a new artifact as a result. We use the 'dependency:copy' goal from maven-dependency-plugin to get this Project B artifact from our…
2
votes
1 answer

Copy all maven dependencies from children pom to directory

I'm trying to copy all the dependencies of a project and its sub-modules to a specific folder (lets say parent/target/lib) the project is something like this: parent |- module1 |- module2 |- module3 |- module3.1 |- module3.2 |- module4 in…
phury
  • 2,123
  • 2
  • 21
  • 33
2
votes
1 answer

Obtain multiple maven dependency trees

I have a Maven project that depends on numerous other projects, which often have several conflicting dependencies. Maven will automatically resolve dependency conflicts using its nearest-wins strategy, in which case it will list the chosen version…
Boj
  • 3,923
  • 3
  • 22
  • 39
2
votes
1 answer

Mojo Development. How to traverse managed dependencies?

We are developing a framework and want to publish a BOM(bill of material) like Spring 4 does. In this main pom.xml, all versions of our components are listed as managed dependencies. Because we have a lot of components, we want to check if any of…
lrxw
  • 3,576
  • 7
  • 32
  • 46
2
votes
0 answers

maven dependency plugin - exclude transitive dependencies

I work now on build for a huge project. It builds some big packages out of modules, that I need to unpack later to a folder. I use mvn dependency plugin for it. The issue that although I specify true I still…
eugen-fried
  • 2,111
  • 3
  • 27
  • 48
2
votes
1 answer

maven 3 dependency plugin - inconsistent result

I am migrating my project from maven 2 (2.2.1) to maven 3 (3.1.0) and I am having some issues with jar versions. When I tried to track down the problem, I experienced some inconsistent results from dependency plugin which confused me. When I tried…
oppjinx
  • 33
  • 5
2
votes
1 answer

Maven - duplicating dependency with different types/classifiers in dependency management

I'm looking at a project's POM and its dependency management section lists the same artifact 3 times - each time with different classifiers/types. What does this help you achieve? Specifically, the dependency in question is the test module of the…
Miro
  • 135
  • 1
  • 3
  • 9
2
votes
1 answer

Maven dependency on another Maven project

I'm currently having trouble trying to add add the dependency of another Maven project (specifically Aerospike) into my project. I already did a mvn install on the Aerospike project so in my repository (on Linux:…
ksdnlee
  • 91
  • 2
  • 10
2
votes
0 answers

maven-dependency-plugin get all multi module project's dependencies

I have a maven multi module project A. This project has the sub modules B and C. Now, I want to use the maven-dependency-plugin plugin to get all the dependencies of A, B and C, but without specifying A, B and C in my pom. I just want to call A. If…
Eldad Assis
  • 10,464
  • 11
  • 52
  • 78
2
votes
1 answer

How to find out which maven artifact/plugin is requesting for the download of a no longer available dependency

I was compiling an "old" open sourced project, while encountered this problem: [ERROR] Failed to execute goal on project .... Can not transfer artifact x:y:z from ... the artifact x:y:z is not found from all repositories defined in the project…
whz-pa
  • 25
  • 4