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

get aggregated information about maven dependencies

I have a deep hierarchy of maven projects. The top level projects are pure aggregation projects: they do not define dependencies themselves and just enumerate the child projects that have a lot of dependencies each one. I know how to get…
AlexR
  • 114,158
  • 16
  • 130
  • 208
2
votes
1 answer

Maven often doesn't resolve version number for transitive dependencies - "${project.version}"

I've been suffering this problem for a while now and can't figure out what the issue might be. It is intermittent which is why I give it half an hour here and there to try to solve it but then end up giving up until I get fed up enough to try again.…
Oskar Lund
  • 339
  • 2
  • 11
2
votes
1 answer

maven-dependeny-plugin 3.2.0 downloading struts 1.3.8

We are using the maven-dependency-plugin to get a ZIP from our nexus for later use. We do this cause it's the easiest way to download from our protected nexus using the integrated maven-user handling. When using the maven-dependency-plugin it…
TomStroemer
  • 1,390
  • 8
  • 28
2
votes
1 answer

Why would Sonatype IQ scan report Guava vulnerability when 'mvn dependency:tree' does not show Guava at all?

Why would Sonatype IQ scan report show (in IntelliJ-IDEA) a Guava vulnerability when mvn dependency:tree does not show Guava at all? Here is my Sonatype scan result, with a Level-7 Critical vulnerability in all versions of Guava. So, if mvn…
djangofan
  • 28,471
  • 61
  • 196
  • 289
2
votes
0 answers

Maven `dependency:purge-local-repository` doesn't remove all dependencies

I know that there are few questions already about dependency:purge-local-repository to clean up the local repository dependency cache. Almost all posts say this command will remove all dependencies but it seems not... Especially "test" scope…
2
votes
1 answer

How to dependency:tree on a specific artifact?

Title says it all. Given a dependency, how can I get a tree of its dependencies? Let's say I want to target org.hibernate:hibernate-core: org.hibernate hibernate-core
George Z.
  • 6,643
  • 4
  • 27
  • 47
2
votes
2 answers

Excluding some dependency from mvn dependency:resolve

In my pom.xml of com.test:Service:1.0, I have a dependency on some local jar: com.test:Parser:1.0 I want to resolve all dependencies except for it, since I install it manually to my local maven. Resolve command: mvn -B dependency:resolve…
Mugen
  • 8,301
  • 10
  • 62
  • 140
2
votes
1 answer

Maven dependency unpack - skip top level directory

We have an artifact that's a third party zip file we want to unpack and include the unpacked structure in our own assembly. The problem is that the top level directory of the unzipped zip file is an ugly directory name with a bunch of version…
nsayer
  • 16,925
  • 3
  • 33
  • 51
2
votes
2 answers

How to fix "Either artifact or artifactItems is required" error in MAVEN

my project is a very simple example because I removed all your code to try to find the problem by running the command "mvn dependency: copy -Dcopy.version = 0.0.1-SNAPSHOT". The point is, I need to package projects to publish .jar on Google…
2
votes
1 answer

maven-dependency-plugin:3.1.1:unpack Unable to find/resolve artifact

[SOLVED] How to fix: maven-dependency-plugin:3.1.1:unpack Unable to find/resolve artifact. After a day of trial and error, I realized something. The maven plugins are trying to build the parent module (rst_bav). This module is just a container…
Martin
  • 81
  • 1
  • 12
2
votes
1 answer

Maven-dependency-plugin (unpack-dependencies) ignores configuration

The following problem occurred: There is a dependency in the project. The dependency contains .js and .css files (essentially they will be used as resources). I need to extract and put these files in a certain place. I thought to use…
titaniche
  • 197
  • 1
  • 1
  • 10
2
votes
2 answers

Package maven project for offline mode

I need to execute JMeter tests on an offline server. Currently, I have a Maven project which executes JMeter tests with the plugin "jmeter-maven-plugin" on my workstation. Now I want to package this Maven project to deploy it on my offline server. I…
2
votes
1 answer

How to unpack just the files from a sub-folder in maven-dependency-plugin with goal unpack-dependencies?

How to unpack files from a sub-folder into a target folder? Example: My package includes ThisFolder and ThatFolder, I just want to unpack the folders and files from ThisFolder into the target directory, not the folder Thisfolder itself.
Frankenstein
  • 653
  • 9
  • 18
2
votes
1 answer

how to add jar dependency to xtext maven build

What is the correct way to use a maven jar file in my xtext dsl project? What I have tried is this: use the maven-dependency-plugin in the pom.xml file of the *.dsl project to download the .jar file from a maven repository into the ./lib/…
TmTron
  • 17,012
  • 10
  • 94
  • 142
2
votes
2 answers

How to copy dependencies which are also in type - pom into a location using maven dependency plugin

following dependencies need to be resolved and copy child dependencies into a specific location. org.wildfly wildfly-ejb-client-bom
Kavintha M
  • 21
  • 3