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
4
votes
0 answers

Docker - multi stage build with multi-module Maven project

I have a Maven Project that has a root pom.xml file that has multiple sub-folders as modules and dependencies. It looks something like this: pom module1
Gambit2007
  • 3,260
  • 13
  • 46
  • 86
4
votes
1 answer

Overwrite settings of Apache Maven Dependency Plugin

We are using the dependency:copy goal of Apache Maven Dependency Plugin which has three overwrite settings: overWriteIfNewer: Overwrite if newer overWriteReleases: Overwrite release artifacts overWriteSnapshots: Overwrite snapshot artifacts The…
palacsint
  • 28,416
  • 10
  • 82
  • 109
4
votes
3 answers

Maven - How to extract a dependency inside another ZIP dependency?

I have a maven project. Inside that project, I have a .zip dependency that carries a jar and I need to extract that jar out of the zip dependency and have maven use the jar as a dependency. I can currently download and unpack the zip but, cannot…
Trogdor
  • 41
  • 4
4
votes
1 answer

Copy specific artifacts with dependencies to the specific folder and rest of dependencies to another folder

I have a maven project with 5 dependencies. Two of them (with its transitive dependencies) I need to have in a custom location, let's say in client/plugins. While rest of the project dependencies (also with transitive dependencies) I need in another…
Vitali Plagov
  • 722
  • 1
  • 12
  • 31
4
votes
3 answers

maven dependency plugin ignores dependency versions?

in my opinion the maven dependency plugin is misbehaving when calculating the dependency list. Assume these 3 projects: base1:
radlan
  • 2,393
  • 4
  • 33
  • 53
4
votes
2 answers

Is there a Maven plugin that shows the dependency tree of a plugin?

Is there an easier way to get the dependency tree of a Maven plugin, other than to checkout its sources and run a mvn dependency:tree against them?
carlspring
  • 31,231
  • 29
  • 115
  • 197
4
votes
1 answer

How to rename latest snapshot version to include a version number

Question: How can I rename the snapshot version of file to include the version number? I use LATEST to download the latest version, but how can I use it in the ? ${project.dependencies[0].version} gives me version…
lili
  • 1,866
  • 8
  • 29
  • 50
4
votes
2 answers

Export Maven dependencies and maintain repository folder structure

I'm trying to know whether it's possible to export/copy dependencies of a project managed using Maven while maintaining the folder structure that is adopted in the local repository. The root of my need is that I have amassed through almost ten years…
AbVog
  • 1,435
  • 22
  • 35
4
votes
2 answers

Maven Integration with Query DSL

I am trying to integrate an existing project in maven with query dsl I have added the dependencies as below ` com.mysema.querydsl querydsl-apt 2.5.0
Rudy
  • 679
  • 2
  • 9
  • 17
4
votes
1 answer

How to apply dependencies for all child projects/modules Gradle Android Studio

I am newbie in gradle scripts, have only basic knowledge. I have multiple modules inside my project. Here is screenshot. In my project build.gradle file I have basic configuration. As far as I know this file is for global project configuration. …
CROSP
  • 4,499
  • 4
  • 38
  • 89
4
votes
3 answers

Intellij 14 not adding pom dependencies in Classpath

I'm using Intellij 14.0.3. I have imported some Maven modules which declares dependencies in their pom.xml files. In the IDE, when I'm opening a class importing an object from that dependencies, the import is shown as "on error" such as any…
Lucas.de
  • 555
  • 8
  • 17
4
votes
2 answers

Copy dependencies to project's local repository

maven-dependency-plugin:copy copies a single jar. I need to copy the jar and the pom to the appropriately named path in accordance with repository structure. Use case: My project has a local repository, where I keep non-public dependencies. The…
Aleksandr Dubinsky
  • 22,436
  • 15
  • 82
  • 99
4
votes
2 answers

What is the group and artifact id of Spring boot loader?

I want to unpack and copy the spring boot loader component in my war file. I am using maven dependency plugin for it. I am not sure about its correct group and artifact id. Maven complains about it. Here is the maven configuration which I am…
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
4
votes
0 answers

Maven profile-specific dependencies not being copied by maven-dependency-plugin

I have a maven project, 'a', that builds a simple library. The project has an additional source folder that can be optionally included by specifying a named profile. This will do two things: Include an additional source folder in the built jar…
4
votes
3 answers

Build maven jar from classes no java source

I want to build a maven jar artifact from classes. I don't have source files. These classes are originally in another artifact installed locally. I use maven-dependency-plugin to unpack the classes and put them in the target folder for this…
Aravind Datta
  • 327
  • 4
  • 6
  • 17