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

Apache maven-assembly-plugin or maven-dependency-plugin when foreign jars are needed in runtime

Hi which plugin will you use when you need to pack a distribution jar to include all the runtime libraries (jars). These jars content will have to be unpacked into the root path of the distribution jar. Correct versions for these dependencies can be…
user1589188
  • 5,316
  • 17
  • 67
  • 130
7
votes
1 answer

Maven 2.1 dependency:analyze. Transitive dependencies: Used undeclared dependencies found

I am using the dependency:analyze to detect dependency problems. But I have found a problem with the transitive dependencies because the plugin doesn't resolve this dependencies. When I execute mvn dependency:tree, the output shows the transitive…
Javi Pedrera
  • 2,075
  • 4
  • 21
  • 29
6
votes
3 answers

mvn dependency:tree -Dverbose hangs and never finishes

I have a version conflict in transitive dependencies in my project, and I'm trying to use mvn dependency:tree -Dverbose to find the version conflict. However, whenever I run mvn dependency:tree -Dverbose, it just hangs and never finishes. I tried…
Alex A
  • 521
  • 1
  • 4
  • 16
6
votes
3 answers

'Dependency not found' with release 17 while analyzing

One of the project that I was looking into has these relevant configurations: 1.8 1.8 maven-dependency-plugin
Naman
  • 27,789
  • 26
  • 218
  • 353
6
votes
2 answers

mvn dependency:go-offline doesn't download the requirements for maven-surefire-plugin

I'm trying to build an open source project in docker and want to save time spent on builds, so I tried using mvn dependency:go-offline, which does download maven-surefire-plugin itself. Running mvn -o clean package afterwards results in [ERROR]…
Benjamin Podszun
  • 9,679
  • 3
  • 34
  • 45
6
votes
1 answer

OWASP dependency-check maven vs command line not same results

On a Maven project, I am running both the OWASP dependency-check-maven plugin as also the OWASP command line tool in order to generate a report with dependencies having vulnerabilities. What I cannot understand, is how those two tools operate. In…
6
votes
1 answer

Is there a way to filter Maven's dependency:tree by scope?

I'm trying to filter the output of dependency:tree by scope. The docs (https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html) specify a option that does exactly this, but it's currently broken due to a long-outstanding bug.…
6
votes
0 answers

Maven-Premature end of Content-Length delimited message body (expected: 56473600; received: 6843

I am trying to use the mvn depenedency get to download the tar file from the repo. Here is the command: mvn dependency:get -DgroupId=com.sample -DartifactId=sample-project -Dversion=1.0.1-SNAPSHOT -Dtransitive=false -Dpackaging=tar This gives me…
Deepak Kumar
  • 843
  • 1
  • 7
  • 19
6
votes
1 answer

maven-dependency-plugin ignores outputDirectory configuration

I want to create a jar file with my main java project and all of it's dependencies. so I created the following plugin definition in the pom file: org.apache.maven.plugins
ufk
  • 30,912
  • 70
  • 235
  • 386
6
votes
3 answers

How to output a simple list of Maven dependencies

I'm trying to get a simple, machine-parsable list of dependencies from my POM. If I do: mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:list -f sample.pom I get a load of pointless [INFO] output: [INFO] Scanning for projects... [INFO]…
adelphus
  • 10,116
  • 5
  • 36
  • 46
6
votes
1 answer

Maven dependency plugin seems not resolve all dependencies

I have created a very simple Maven project that builds a .war file. Maven version 3.2.3, Java version 1.7.0_67. The pom.xml file is in this gist. If I run mvn clean install, then the project builds fine. But if I first download all dependencies…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
6
votes
3 answers

Struggling to import maven dependency from SourceForge

Trying to use a Project called simmetrics: http://sourceforge.net/projects/simmetrics/ Trying to add the project as a maven dependancy into the POM file as follows: net.sf.simmetrics
RST
  • 592
  • 1
  • 10
  • 27
6
votes
1 answer

Maven: Extract dependency resources before test

I have a multimodule Maven project. One subproject hosts XSL/XML resource files. The other project hosts Java code that needs to use these files in its unit tests. In the dependency's jar, the resources lie in the folder xml-resources. I found this…
flyx
  • 35,506
  • 7
  • 89
  • 126
5
votes
1 answer

maven-dependency-plugin generates duplicate files in jar-with-dependencies.jar file

i am creating a standalone java application with maven, and i am including the dependencies in the jar file with maven-dependecy-plugin as follows: org.apache.maven.plugins
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
5
votes
1 answer

Local Maven Dependency project is referenced as a class folder instead of a jar

I'm using Eclipse Indigo with the m2e Plugin (Version 1.0.1). I have two separate workspace projects: A Maven Project that is basically a Vaadin widget and a second Maven project that is my main project which is referencing that widget…
user1099501
  • 55
  • 1
  • 6