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

inheritance of maven dependency version

In my pom.xml I have defined a dependency like this org.springframework.data spring-data-jpa without specifying…
Gab是好人
  • 1,976
  • 1
  • 25
  • 39
1
vote
1 answer

Listing maven dependencies in a directory

I want to get all the maven dependencies list for a directory containing multiple projects. I can go inside each project and use command mvn dependency:tree and consolidate all of them manually. Is there anyway (script or command) i can get…
1
vote
2 answers

Using maven-dependency-plugin to copy shaded artifact

I have a Maven project Foo, which uses maven-shade-plugin to package a webstart fat jar, one that includes all its dependencies. maven-shade-plugin
amphibient
  • 29,770
  • 54
  • 146
  • 240
1
vote
1 answer

Maven unzip spring boot executable jar

I need to unzip a spring boot executable jar as a part of my maven build. I have tried two approaches, one using maven-dependency-plugin second - maven-antrun-plugin. Both plugins silently output nothing. I went to debug maven-dependency-plugin and…
Andrew
  • 2,663
  • 6
  • 28
  • 50
1
vote
2 answers

How to use real jar names in manifest classpath using maven-jar-plugin/maven-war-plugin

For some reason my client needs my artifacts without version in their names (MyArtifact.jar instead of MyArtifact-1.23.345.jar) Therefor I added this configuration to my parent pom:
1
vote
1 answer

Unpack WAR Is Not Unpacking

I am trying to achieve the same objective to the question posted here, namely to assemble a war dependency into a deployable zip, with both the war and some of its unpacked *.yml files in the final zip. I have the war file correctly assembled into…
chaserb
  • 1,340
  • 1
  • 14
  • 25
1
vote
0 answers

How to search transitive pom dependencies (for snapshots in particular) and prevent releases with any snapshot dependencies?

I'm currently running into issues with incorrectly build dependencies that although are said to be releases, are actually dependent on snapshots. To identify "snapshot dependencies" (both transitive and direct), I'm using this mvn dependency:tree…
mac
  • 2,672
  • 4
  • 31
  • 43
1
vote
1 answer

Maven Reassembling Matching Test and Source Jars while maintaining DRY principal

In a large multi module maven project we collect test jars from 30 modules to create a customer-test jar. We exclude the tests, keeping only the utility classes supporting tests. I want to make the equivalent source jar but don't want to violate…
Peter Kahn
  • 12,364
  • 20
  • 77
  • 135
1
vote
0 answers

How to copy all war type artifacts from parent pom without explicitly including the artifactIds in child pom?

Is there an easier way to copy all the war type artifacts in the child pom from parent pom and the imported boms. I have the following plugin in the child pom, org.apache.maven.plugins
v3nM
  • 952
  • 1
  • 12
  • 19
1
vote
0 answers

maven direct dependency on two versions of the same object in one project

I have a case where I need to build what could be considered a patch between 2 versions of the same object. I am using Maven 3.1.1 my.group.id artifact1