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
1
vote
1 answer

Maven dependency:tree doesn't show all transitive dependencies

I was trying to parse some dependency trees via maven dependency:tree, and found some interesting cases: I made a pom.xml to install org.glassfish.jersey.containers:jersey-container-servlet:2.19, here is the content:
1
vote
2 answers

How to copy only OS specific dependency jars by Maven?

I'm currently working on a project that uses (among others) nd4j, deeplearning4j dependencies. These dependencies include versions for different OS, like "nd4j-native-1.0.0-beta6-android-arm.jar" or "nd4j-native-1.0.0-beta6-linux-armhf.jar" etc. As…
Max Senft
  • 610
  • 4
  • 13
1
vote
1 answer

How to copy artifacte using maven plugin to multiple destinations

Hello awesome community, I'd like to use your help once more by understanding how can I copy file during maven package phase. For example, Lets say I create a jar called myCustom.jar and I need to copy it to:…
user2656851
  • 1,643
  • 4
  • 12
  • 15
1
vote
0 answers

Maven: Enforce all subdirectories are modules in aggregator pom

We have git repository with a set of sample applications. Each sample app has its own subdirectory and its own pom.xml, but no common parent pom. The root level has an aggregator pom that should list all the sample apps. +- sample-apps | +-…
gjoranv
  • 4,376
  • 3
  • 21
  • 37
1
vote
0 answers

Maven Dependency Plugin: Incorrect analysis for dependencies in tests?

I'm using maven-dependency-plugin:3.1.1:analyze-only to control my dependencies. We have a corporate-wide parent POM that defines the possible dependencies in dependencyManagement and there are dependencies in every Maven scope. Also, I configured…
eerriicc
  • 1,124
  • 4
  • 17
  • 29
1
vote
0 answers

Unstable maven-dependency-plugin (specific folder is not always generated/included in .jar file)

We currently use a Jenkins pipeline for an Angular 7 and Spring Boot project, in which, among other things, the maven-dependency-plugin is in use. Unfortunately, we have the problem that the "coverage" folder, which is generated automatically after…
1
vote
1 answer

Maven Dependency Plugin go-offline not downloading some plugins

I am trying to download all transitive dependencies and plugins for a pom file into a local folder and then using it to run sonarqube offline. I am fairly new to Maven, so I might be doing something wrong here, but I think maven…
Joseph
  • 53
  • 6
1
vote
0 answers

Download jar with dependencies using Maven

I would like to use Maven to download a "fat" jar- one that includes all of its dependencies. (The same sort of jar that is built using the jar-with-dependencies descriptor Ref in the maven-assembly-plugin) The default behavior of mvn…
mario_sunny
  • 1,412
  • 11
  • 29
1
vote
0 answers

maven-dependency-plugin: issue with unpack goal when using dependency with empty classifier

I have dependencies with classifiers that contain placeholder property keys which can be overriden via system properties. The default property value for each classifier is empty. E.g.
user35934
  • 374
  • 2
  • 13
1
vote
0 answers

Using mvn get to pull latest artifact from Nexus repository

I am trying to pull the latest artifact from my Nexus repository. I am using the get command to pull the artifact. mvn dependency:get -Durl=http://nexus-repository:8080/nexus/content/repositories/snapshots…
Robert
  • 10,403
  • 14
  • 67
  • 117
1
vote
0 answers

Create an archive with all dependencies sources

When I use this command: mvn dependency:sources Maven will attempt to download source code for each of the dependencies in my pom file (cf. Get source JARs from Maven repository). But these files are downloaded into my local cache ~/.m2. Is there a…
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
1
vote
1 answer

maven multi threaded build leading to OverConstrainedVersionException

I am using maven-3.2.3 ,maven-depedency-plugin-3.0.2 and maven-assembly-plugin-3.0.0 all of which are thread safe, but when running maven build with 4 threads (mvn clean install -T 4), I'am intermittently…
1
vote
0 answers

maven assembly and depedency plugin - copying files works when using archives, fails when using dir

I have 2 projects: ProjA and ProjB. ProjB depends on ProjA. What i'm trying to do is simply copy several files from ProjA (which is packaged with assembly plugin) to ProjB (which is just standard jar) in the package phase. There are two cases - one…
hrs
  • 379
  • 4
  • 12
1
vote
2 answers

need maven plugin configuration for building aggregate source jar

I've been fighting with this for a while and reading a lot of docs pages and other questions but still can't get it to work. In my ORMLite project, I have a ormlite-core project which has core functionality and then a -jdbc and -android projects…
1
vote
1 answer

Sorting (topological) maven dependencies

We have a number of SNAPSHOT artifacts that we need to release more or less all at once. We were looking for a plug-in that would do the sort and then list the dependencies (dependency:list seems to give them in alphabetical order, dependency:tree…