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

Customize dependency file names in maven

I'm using maven-dependency-plugin to copy dependency jars into specific folder. I'm looking the way to customize copied jar file names using dependency properties: groupid, artifactid and version. example: I have following dependency
board reader
  • 344
  • 3
  • 11
0
votes
0 answers

List ancestor poms of Maven dependencies

Every time I build my Maven project with a clean ~.m2/ directory, Maven downloads a POM file which is the parent of one my dependencies. This parent pom has SNAPSHOT version. My project has no SNAPSHOT dependencies at all, so I suspect one of my…
Boj
  • 3,923
  • 3
  • 22
  • 39
0
votes
1 answer

Excluding transitive dependency not working

Project A references Project B. Project B has included a local dependency. This local dependency unfortunately has a dependency to net.java.dev.designgridlayout in version 1.5. We want to use net.java.dev.designgridlayout in version 1.11 in Project…
Stefano L
  • 1,486
  • 2
  • 15
  • 36
0
votes
1 answer

Maven - Identifying the source pom file of a dependency

I have a situation where in my EAR file I have 'N' number of JAR files[modules] present. In these JAR files, there are certain artifacts which are duplicate. By duplicate, I mean the artifact name is same but with different…
Deepan
  • 117
  • 1
  • 1
  • 8
0
votes
1 answer

How to install google protobuf on FreeBSD

I am trying to find a step by step guide to installing protobuf on FreeBSD.. I tried installing with pkd_add but it does not find it
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
0 answers

Pulling in POM dependency Hierarchies

I'm attempting to use a ruby on rails application to look through and visually organize dependencies. As of now, I'll be using the Maven Dependency tree plugin. However (if my understanding of this is correct), I cannot run "mvn dependency:tree"…
0
votes
0 answers

Spring Tool Suite (STS) not downloading Maven Dependencies automatically after starting Spring Starter Project in Mavericks

Our Spring Tool Suite (STS) not downloading Maven Dependencies automatically after starting Spring Starter Project with Web Style. We are using: Spring Tool Suite Version: 3.6.1.RELEASE Build Id: 201408250818 Platform: Eclipse Luna (4.4) Maven…
0
votes
1 answer

How to choose which maven executions are run?

THE SETUP I have a complex project that I'm trying to build using Maven. What follows is a simplified example of that project. The directory structure is as follows: main - The project has more than one 'ear', each of which contains more than one…
EdwinW
  • 1,007
  • 2
  • 13
  • 32
0
votes
1 answer

Unresolveable build extension while resolving grails plugins using maven

I am trying to compile a grails project using maven. I am getting the following error [INFO] Scanning for projects... [WARNING] The POM for org.grails.plugins:kickstart-with-bootstrap:jar:1.1.0 is missing, no dependency information available [ERROR]…
0
votes
0 answers

Adding maven external jar when i dont have repository connection

I have jdom dependency in one/more of my multimodule project. I dont have repositroy conection as of now. Recently jdom upgraded to jdom2. Hence need to download that jar to compile and ve a successful build. As a first initiative i tried to…
Marie
  • 51
  • 1
  • 1
  • 5
0
votes
0 answers

Trigger Maven Plugin Execution if module has direct dependency on specific artifact

Can maven trigger or skip a plugin execution if the module directly depends on another module? For example, my project contains 4 children: connector, a, b, c a & b depend on connector, c does not I want a & b to perform a…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
0
votes
1 answer

Provided transitive dependencies not being listed

I have 2 projects, when I list the dependencies of the first I get: [INFO] com.onespatial.gothic:gothic-java:jar:5.16 [INFO] +- com.onespatial.tools.gde:gde-cfg:zip:5.16:provided [INFO] +- com.onespatial.gothic:gothic-w32:jar:5.16:compile [INFO] \-…
Marcus MacWilliam
  • 602
  • 1
  • 6
  • 24
0
votes
1 answer

Maven dependency plugin weird issue with UnpackDependenciesMojo

I am using Maven 3.0.3 and suddenly my mvn dependencies plugin started producing an error. I've tried to clean the .m2 folder with no luck... Any ideas? WARNING: Error injecting:…
Kstaoo
  • 63
  • 1
  • 7
0
votes
1 answer

How to find the exact version of a maven dependency programmatically when version is inherited?

I have a maven project where many of the version of child pom's dependencies are listed under tag of the parent pom. This pom tree can have any depth. My problem is, when a pom.xml is given how can I resolve the…
0
votes
2 answers

Maven dependency not in pom.xml

I have a project which uses spring. It uses version 3.1.1 but, for some reason I really don't know, some spring artifacts are duplicated with two different versions. I look for the those dependencies in all pom.xml files from my project. I also use…
esauro
  • 1,276
  • 10
  • 17