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
0
votes
1 answer

Make Eclipse Respect Maven-Dependency-Plugin

How can I have Eclipse recognise my use of the maven-dependency-plugin and execute it before deploying resources to Tomcat via WTP? In a previous question I configured Maven to copy some artifacts into a war application, so I could serve them to web…
DeejUK
  • 12,891
  • 19
  • 89
  • 169
0
votes
1 answer

Maven trying to download file it doesnt have access too

I am trying to build my maven project and every time I build I get the following error: Access denied to http://repository.jboss.com/maven2/org/eclipse/jdt/core/3.2.3.v_686_R32x/core-3.2.3.v_686_R32x.pom. I have tried to force clean and install.…
ninjasense
  • 13,756
  • 19
  • 75
  • 92
0
votes
2 answers

Can I add a child common project in the root project's dependency management section

I am working on an application which got multiple projects. I am trying add dependency management for one of the common project in the root POM so that I can ensure that all projects uses the same version. Root/parent pom contain …
jvG
  • 403
  • 4
  • 6
  • 14
0
votes
1 answer

Maven dependency plugin - How can I ensure that an artifact is present when using dependency-unpack

I'm wondering if there is a way to enforce the existence of a dependency to unpack when using the dependency-unpack goal of the maven dependency plugin. I'm using the configuration below and the problem is that if there is no dependency specified…
PiersyP
  • 5,003
  • 2
  • 33
  • 35
0
votes
1 answer

Unzip jars from zip dependency :: Android project

I used maven-dependency-plugin plugin to unpack-dependencies . I can see unpacked jars (those needed at compile stage) under target/dependency when run mvn dependency:unpack-dependencies But instead if I run mvn clean install I get compilation…
nish1013
  • 3,658
  • 8
  • 33
  • 46
0
votes
0 answers

Maven artifact zipped jars

I have a maven artifacts in Zip format that contains necessary jars to compile my project. I tried using unpack-dependencies goal but seems like Mavan does not pick jars as dependencies. Is it doable to use jars withing a zip artifact to compile the…
nish1013
  • 3,658
  • 8
  • 33
  • 46
0
votes
2 answers

How to unpack all managed Maven dependencies?

I would like to enable my Maven build to fetch all source and JavaDoc jars and to unpack all JavaDoc jars only once in a multi-module Maven project. I managed with the help of the Maven dependency plugin to to fetch all source and JavaDoc jars for…
Oliver
  • 3,815
  • 8
  • 35
  • 63
0
votes
1 answer

maven copy-dependencies includeGroupIds and all transitive elements to those

I try to figure out how to copy all dependencies to an explicit version and all the required dependencies. For Example: My project requires version 3 of a third party lib, called foobar. I want to copy the version 3 libraries to a folder named…
0
votes
1 answer

Add dependency according to the given condition in Maven

Is there a way I can set up dependancies according to a given condition when I buid the maven project. mvn package someCondition So if I say mvn install A it should add one dependancy and if a say mvn install B it should add another type of…
Ravindu
  • 2,408
  • 8
  • 30
  • 46
0
votes
1 answer

from Maven2 to OSGI bundle

I want to convert a Maven2 project in a OSGI bundle. I am trying to use maven-bundle-plugin that should create the manifest according to maven dependencies. The problem is that i can't manage to let it work. When I install and run the bundle…
0
votes
1 answer

maven dependency:copy across modules

Have a project with several module projects and itself having other module projects. I have certain modules generating a special artifact type '.kar', and I am deploying this to artifactory during maven deploy phase. Now I want to find a way by…
user2074161
  • 63
  • 1
  • 6
0
votes
1 answer

Export test jar with maven one jar plugin

I've used maven-one-jar plugin , exported runnable jars and used them. Can I export a test-one-jar containing the junit test classes along with the other dependencies using this plugin? What changes should I make in the pom(.xml) configuration?
0
votes
0 answers

Maven Dependency Plugin: Dependency Source, linking Dependencies with the repositories and displaying it

I need help with extending Maven Dependency plugin as it doesn't display all information I want about Dependency. I want to get source of the Dependency, linking artifacts with the repositories and displaying it as log output when the plugin goal is…
0
votes
1 answer

Failed to collect Maven dependencies in Java HelloWorld when deploying to heroku

I'm playing with Java and heroku following the heroku guide. But with few modifications. In this case I use JDK 1.7, Jetty 8.1.2.v20120308 and Maven dependencies plugin 2.7 (Because it seems, 2.4 couldn't be built) All is built ok locally with mvn…
ArtStack
  • 5
  • 6
0
votes
1 answer

deploy maven artifact with multiple profile dependencies

We are relatively new to Maven and now face a problem. We have a Maven project (projectA) whose JAR is the dependency of several other projects. Some of the other projects are some custom web container while others are not, so some of projectA's…
1 2 3
27
28