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

Maven dependency Plugin usage

I am trying to do two things here : 1. Copy the dependencies to two different folders : a. package1 - contains my other project dependencies b. package2 - contains third party jar dependencies 2. Write all the jars in both package1 and…
2
votes
2 answers

mvn dependency:copy-dependencies removes the versions

I'm using "mvn dependency:copy-dependencies" to get all sources of the dependencies my project uses. I use it from command line, so it looks like this: mvn dependency:copy-dependencies -Dclassifier=sources -DincludeScope=compile It works fine…
Tarlog
  • 10,024
  • 2
  • 43
  • 67
2
votes
1 answer

Maven dependency plugin adds artifact named directory

I want to copy files from some artifact. but it always adds a directory with the name of that artifact. the pom of the artifact to copy…
Dima
  • 8,586
  • 4
  • 28
  • 57
2
votes
2 answers

Maven package in-project repository dependencies inside jar

I am using the in-project repository dependency solution to include a third party jar as a dependency in my Maven project. I'm following the instructions on this blog for that. Now, I want that when I package my Maven project into a jar, the jar…
Akshay Damle
  • 1,220
  • 3
  • 18
  • 31
2
votes
0 answers

copy dependencies using some wildcard on groupid using maven dependency plugin copy mojo

I want to copy dependencies from a war packaged project after applying some filtering on the groupid using some sort of pattern matching so that groupids matching a pattern are copies. Is it possible ? This will help in not listing the artifacts…
user2599052
  • 1,056
  • 3
  • 12
  • 27
2
votes
2 answers

Maven dependency:copy-dependencies -- Get javadoc and sources

The Maven goal dependency:copy-dependencies copies artifacts together with their poms (if the parameter is set). Is it somehow possible to also grab sources and javadoc?
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
1 answer

Create symlinks instead of copy with maven-dependency-plugin : copy-dependencies

I work on a Maven project that need to copy mode than 10 GB of artifacts in a target repository from a maven local repository (after downloaded them). In some cases (e.g. for tests), I'd like to replace this copy by a symlink creation in order to…
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
2
votes
1 answer

Maven-dependency-plugin: overWrite = false ignored

My problem is that i want to extract files from a .jar file with maven but only if the files do not exist in the output directory. So if i have a file /src/META-INF/beans.xml then i only want the persistence.xml extracted, etc. Sadly the…
user3637541
  • 675
  • 4
  • 15
2
votes
1 answer

Maven how to copy a specific folder inside a dependency to target/classes/myfolder

I have a dependency: org.webjars swagger-ui 2.1.4 Inside swagger-ui-2.1.4.jar has META-INF/resources/webjars/. I would like to copy webjars/…
Tran Ngu Dang
  • 2,540
  • 6
  • 29
  • 38
2
votes
1 answer

How does Maven resolve a version of a plugin to execute?

There are several downloaded versions of maven-dependency-plugin in my local repository. In a metadata file placed in org/apache/maven/plugins/maven-dependency-plugin/ versions from 2.0-alpha-1 to 2.10 are listed. Version 2.10 is set as release and…
2
votes
1 answer

maven avoid downloading dependency

We have product help document which is about 150Mb and being build every day and updated to maven repo. So when we build the project which has dependency on help document it will download entire 150Mb once everyday and it takes lot of time. Is…
Dheeraj Joshi
  • 3,057
  • 8
  • 38
  • 55
2
votes
1 answer

data flow sdk build fails

When I try to build the dataflow sdk from the source cloned from [1], it fails with the following stack trace. Please help me to get it resolved. [1] https://github.com/GoogleCloudPlatform/DataflowJavaSDK Full Stack Trace [WARNING] [WARNING] Some…
2
votes
1 answer

Maven dependency:get get LATEST ignore repositories from settings.xml

I'm trying to download the last snapshot version from my remote repository (Artifactory. To do that, I'm using the following command: mvn dependency:get \ -Dartifact=com.acme:my-application:LATEST:war \ …
g00glen00b
  • 41,995
  • 13
  • 95
  • 133
2
votes
1 answer

maven missing multiple artifacts when using ejb-jee6-was archetype from com.ibm.tools.archetype group

I'm trying to create new project using ejb-jee6-was archetype but after project has been created get the following error: Multiple annotations found at this line: - Missing artifact com.ibm.websphere.ws:com.ibm.ws.jpa:jar:1.0.0 - Missing…
Anatoly
  • 5,056
  • 9
  • 62
  • 136
2
votes
1 answer

Maven multi-module project - copying all dependencies into a single tar.gz

I'm looking to pull all of the dependencies from each module of my maven project and stick them into a single tar.gz file using the maven-assembly-plugin. I currently have a pom setup as a parent to all of the modules. My idea was to use the…
Carl
  • 548
  • 1
  • 4
  • 21