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

maven-dependency-plugin tag doesn't work

The tag in the maven-dependency-plugin entry give below doesn't seem to work. maven-dependency-plugin unpack
Kiran Mohan
  • 2,696
  • 6
  • 36
  • 62
3
votes
2 answers

Looking for a way to visualize dependency structure of my multi-module pom project

I have a pretty large project (~30 modules) and want to visualize module inter dependencies, excluding 3rd party. It seems that existing tools simply can't handle the maven reactor. The maven dependency plugin (dependency:tree goal) knows how to…
Vitaliy
  • 8,044
  • 7
  • 38
  • 66
3
votes
3 answers

Do not reproduce path during maven-dependency-plugin unpack goal

Hi want some files that are inside a jar copied to the root folder of my java project. I used this : org.apache.maven.plugins
Heetola
  • 5,791
  • 7
  • 30
  • 45
3
votes
1 answer

Maven: dependency:tree gives wrong results if outputType is graph and project contains multiple modules

My project structure looks like this: PARENT POM which holds external dependencies [located separately from the project] MAIN POM, which is a child of PARENT POM, it holds a set of child modules [it is located in root folder of the project] CHILD…
MiamiBeach
  • 3,261
  • 6
  • 28
  • 54
3
votes
2 answers

maven-dependency-plugin unpack-dependencies can't support tar containing paths over 100 characters

I'm running into an issue with the maven-dependency-plugin (tested both versions 2.8 and 2.9) where it truncates paths over 100 characters from my tar.bz2 on extraction. I've seen that maven assembly plugin has a tarLongFileMode that can be set to…
wonderfulthunk
  • 555
  • 4
  • 16
3
votes
0 answers

Execute permission in maven-dependency-plugin during copying and unpacking

I've got strange behavior with using maven-dependency-plugin. When I use 'copy' goal of maven-dependency-plugin and then I unzip dependency archive manually I have -rwx permissions on my files. But when I do 'unpack' goal, then I have just -rw…
XZen
  • 225
  • 5
  • 27
  • 49
3
votes
1 answer

Why does dependency:list -DincludeScope=compile lists compile scope for transitive dependencies of test scope items

Should "mvn dependency:list -DincludeScope=compile" include child dependencies of test scope deps? My project depends on "org.apache.httpcomponents:httpclient:jar:4.1:test" and httpclient depends on…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
3
votes
1 answer

Maven dependency plugin difference in ordering between build-classpath and tree

Can anyone explain why I would be getting a different ordering of the output between tree and build-classpath on maven-dependency-plugin? I'm running mvn -pl releases org.apache.maven.plugins:maven-dependency-plugin:2.6:tree -Dtokens=whitespace…
Pram
  • 2,261
  • 3
  • 31
  • 50
3
votes
1 answer

Unable to find resource 'org.apache.maven.plugins:maven-dependency-plugin:pom:2.0' in repository central (http://repo1.maven.org/maven2)

I am trying to move my POM.XML into linux build environment, maven-dependency-plugin is not getting downloaded. I checked proxy settings too. Except this plugin, other plugins, dependencies are resolved without any issues. I am using Maven 2.2.1…
Raj
  • 59
  • 1
  • 1
  • 5
3
votes
2 answers

Error "copy-dependencies" in maven

I want copy lib dependencies in maven into lib directory when install project. I used that in my pom file. ...
tienthanhakay
  • 396
  • 1
  • 4
  • 17
3
votes
2 answers

Maven dependencyManagement in parent when using child as module failes due to execution order

Is there an easier way to force maven to build the parent before the modules ? Use case: I'm trying to understand what is the best practice to solve the following problem I have two projects that I will name 'A' and 'B' They both have a parent that…
Ika
  • 1,456
  • 1
  • 15
  • 24
3
votes
1 answer

Effect of "overriding" exclusions in maven dependency

How are exclusions in the parent pom affected by exclusions in the child pom? Are the exclusions additive? Here's an example: .... org.hibernate
Chip
  • 3,226
  • 23
  • 31
3
votes
2 answers

Maven used but undeclared dependencies

I discovered interesting features provided by the maven dependency plugin. I've analyzed one of my projects and got the following output: [WARNING] Used undeclared dependencies found: [WARNING] …
manash
  • 6,985
  • 12
  • 65
  • 125
2
votes
2 answers

How to ignore maven-dependency-plugin copy goal errors?

I am copying a resource into another folder before packaging using the maven-dependecy-plugins copy goal. org.apache.maven.plugins maven-dependency-plugin 2.4
André Stannek
  • 7,773
  • 31
  • 52
2
votes
2 answers

maven-dependency-plugin unpacking files in binary mode

We are using maven Assembly and Dependency plugin to share resources across sub-modules, as described in this post, http://www.sonatype.com/people/2008/04/how-to-share-resources-across-projects-in-maven/ While the text files like property files are…
Deepan
  • 559
  • 3
  • 13