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

How to use maven-dependency-plugin:resolve to resolve dependencies of specific POM file

In my maven project, when I use maven-dependency-plugin:resolve, it resolves all the dependencies used by the project in text file. I want to resolve specific dependencies of particular POM file. But there is no inputFile, file, url tags support…
1
vote
2 answers

maven dependency plugin throwing error even if I add flag ignoreunuseddeclareddependecy

I am trying to build my code and I am getting this error: [WARNING] Unused declared dependencies found: [WARNING] com:test-client:jar:v1.0-SNAPSHOT:compile This is the configuration of the dependency plugin in my pom:
1
vote
0 answers

How do you pass multiple scopes when using the Maven dependency plugin?

I want a list of runtime, compile and provided dependencies when using mvn dependency:list. I want to exclude dependencies with a test scope. "includeScope" has runtime and compile options, I want a union of the two. Is there a parameter I can use…
scarvish
  • 58
  • 1
  • 7
1
vote
0 answers

How to add config files to a dependency jar to create target executable jar using maven

I need to create a "wrapper" project with a pom that pulls in a dependency jar file and adds some local config files to it (form src/main/resources) to create the target jar. Can this be done using spring-boot-maven-plugin, maven-dependency-plugin,…
1
vote
1 answer

maven-dependency-plugin:unpack ignores type configuration

There are two independent Maven projects. There isn't neither common parent nor aggregator POM files. The second project needs some classes provided by shared-tests. More precisely I'd re-use some common test cases in dependent project and run them…
zforgo
  • 2,508
  • 2
  • 14
  • 22
1
vote
1 answer

very strange NullPointerException in maven-dependency-plugin

I do have a big problem, that i cannot update to a new version of a library inside a maven managed project. it is easy to reproduce just by calling the maven dependency plugin to download a bigger version of a specific library (payment provider…
Shannon
  • 731
  • 3
  • 12
  • 26
1
vote
1 answer

How to globally set a Maven plugin version without usePluginRegistry?

I'm in a situation now where we've moved many projects to a Docker-in-Docker build and use multi-stage Dockerfiles, starting from a custom base image with Maven to build our projects then copy the artifacts to a deployable image. We've written our…
Sloloem
  • 1,587
  • 2
  • 15
  • 37
1
vote
2 answers

When I am trying to run mvn dependency:tree , I am getting : java.lang.NoClassDefFoundError: org/sonatype/aether/version/VersionConstraint

I have no idea why this is happening. I tried deleting my m2 repository as well. I tried with various versions of maven plugins(2.8) as well. org.apache.maven.plugins
GKr297
  • 185
  • 2
  • 16
1
vote
1 answer

Can you reference OSGi dependencies resolved by Tycho by groupId, artifactId and version?

In a Tycho build OSGi dependencies are usually specified in the MANIFEST.MF of the respective modules (e.g., Eclipse plugins). As far as I understand, Tycho identifies those dependencies, resolves them and adds them to the maven build model at build…
1
vote
1 answer

Maven dependency not found but present in mvnrepository

I created a simple web scraper with Java and Selenium. It just reads a single piece of information and writes that to a CSV file. I'm trying to run it daily using some scheduler on Heroku. The official Heroku documentation says I need to add this to…
Mate Mrše
  • 7,997
  • 10
  • 40
  • 77
1
vote
0 answers

Lib folder not getting added in final project jar that would contain all the dependency jars

I have added the below configuration in POM for adding lib folder but it's not getting generated org.apache.maven.plugins maven-dependency-plugin
1
vote
0 answers

how can i copy multiple dependencies to multiple folders using maven dependency plugin

we are going with a ant-Maven configuration, how i build the application : through ant's build.xml called from maven's ant-run plugin what is needed to run build.xml: to have dependencies in a lib folder issue faced : we have two folders for…
1
vote
2 answers

Using maven-dependency-plugin inside maven profile

I have created a maven profile with maven-dependency-plugin inside it. Below is my plugin copy-dep
Kashyap
  • 385
  • 3
  • 13
1
vote
0 answers

Finding archived maven artifacts when using internal repository

Maven is used in Java projects as a dependency manager. There's Artifactory acting as internal repository and caching proxy for Maven central repository. All maven projects are configured to use it as repository and plugin-repository in their…
rok
  • 9,403
  • 17
  • 70
  • 126
1
vote
1 answer

Configure NetBeans to execute single unit tests with JMockit as javaagent

When using JMockit with Maven for unit tests, it is required to pass the location of jmockit.jar to the VM by setting the -javaagent parameter. The maven-dependency-plugin can do this automatically, I have set up a configuration that does the…