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

getting information about maven dependencies

I wonder if it is possible to get information about all first level dependencies of my maven project. I need the following information: name, vendor, version, license type, reference URL, description. All this information is stored in pom.xml of…
AlexR
  • 114,158
  • 16
  • 130
  • 208
5
votes
1 answer

maven dependency:list just first level

dependency:list prints entire tree in flat format. What can I do so it only gives first level only ? Just to illustrate with dependency:tree [INFO] [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ abc-service --- [INFO]…
Jigar Shah
  • 2,576
  • 6
  • 31
  • 53
5
votes
2 answers

Can I remove jar from local repository without pom.xml?

I install my jar to local repository by command: mvn install:install-file -Dfile=aaa.jar -DgroupId=bbb -DartifactId=ccc -Dversion=1.0 -Dpackaging=jar Now I want remove it from repository. I try command: mvn dependency:purge-local-repository…
Yura Shinkarev
  • 5,134
  • 7
  • 34
  • 57
5
votes
1 answer

Maven-dependency-plugin and annotations with SOURCE RetentionPolicy

In a mvn project where I am utilizing maven-dependency-plugin to detect unused dependencies, there is seemingly no dependency scope I can specify for Google's AutoValue (com.google.auto.value:auto-value) to that will convince the plugin that the…
vpiTriumph
  • 3,116
  • 2
  • 27
  • 39
5
votes
3 answers

How do I get an aggregated list of external dependencies of my maven project?

I have a large multimodule maven project that has a large number of dependencies. I would like to generate a complete, duplicate-filtered list of third-party dependencies (that is, all dependencies not using the group id of the project) this project…
Jeen Broekstra
  • 21,642
  • 4
  • 51
  • 73
5
votes
2 answers

Maven assembly plugin: how to include provided dependencies of transitive dependencies

It seems that including direct dependencies with provided scope is well understood. It also appears that including transitive dependencies with runtime scope is also easily accomplished. But how can I include a dependency two levels of indirection…
Akom
  • 1,484
  • 19
  • 25
5
votes
1 answer

Why does Maven use the wrong plugin despite explicit plugin and pluginManagement version?

My parent pom exlicitly declares a dependence on maven-javadoc-plugin 2.9.1 in both org.apache.maven.plugins maven-javadoc-plugin
djb
  • 4,930
  • 1
  • 34
  • 37
5
votes
1 answer

Delete old artifact version before copy dependencies

I used maven-dependency-plugin to copy the current artifact into a custom directory : org.apache.maven.plugins maven-dependency-plugin 2.8
Arnaud
  • 742
  • 7
  • 23
5
votes
1 answer

Maven custom archive extension - how do I use unpack-dependencies?

I have a custom artfiact type web-module; just a ZIP but with a custom extension. I then have a project depending on it, I want its dependencies of this custom type to be unpacked. The maven-dependency-plugin unpack-dependencies goal seemed to fit…
Ed .
  • 6,373
  • 8
  • 62
  • 82
4
votes
2 answers

Maven dependency plugin ignores destination

I'm using the maven-dependency-plugin from the command line to download a single file, but it always ends up in my local repository when, for my particular use case, I want it to be downloaded to the current directory. I'm using version 2.4 of the…
RCross
  • 4,919
  • 4
  • 44
  • 42
4
votes
5 answers

maven-dependency-plugin target/classes - Access is denied

I have a multi module project with a parent project A, and two childs project B and C. Project B has a dependency on project C. I use the maven-dependency-plugin to copy the dependencies of B to a lib/ directory in the target/ directory. So, I can…
manash
  • 6,985
  • 12
  • 65
  • 125
4
votes
4 answers

Dependency in Maven

I am really new to maven. I am bit confused about the dependency feature. I know that I can add dependency in the pom file like this org.slf4j slf4j-api
Zach
  • 9,989
  • 19
  • 70
  • 107
4
votes
2 answers

maven-dependency-plugin can't exclude test-scope dependencies

I'm using maven-dependency-plugin:copy-dependencies to copy all dependencies into target/dependency directory. My pom.xml is: org.apache.maven.plugins
Kirill
  • 7,580
  • 6
  • 44
  • 95
4
votes
1 answer

How to Copy Bundle-classpath jars and their dependencies from maven repo to my local lib folder?

We are developing an Eclipse RCP application. We decided to use SVN for revision control system. We could export an eclipse product in the eclipse environment. Everything worked fine. But, Some of our plugins have dependencies to regular java jars…
lembas
  • 377
  • 1
  • 7
  • 21
4
votes
1 answer

Find unresolved maven dependencies in multi-module maven project

I'd like maven to report unresolved dependencies in multi-module maven Java project which has below structure: multi-module-java-app/ ├── app1 │ ├── pom.xml │ └── src ├── app2 │ ├── pom.xml │ └── src └── pom.xml poms are at the…
rok
  • 9,403
  • 17
  • 70
  • 126