423 questions
0
votes
0
answers
70
views
Maven Dependency Plugin 3.4.0 fails with "Text file busy" when unpacking Linux ZIP dependencies
I recently upgraded the Maven Dependency Plugin from 3.3.0 to 3.4.0, and now my build fails during the unpack phase with the following error:
Failed to execute goal org.apache.maven.plugins:maven-...
0
votes
1
answer
78
views
Add a dependency from a jar file to be extracted from a zip which is coming from a maven repository
I want to download a zip file from a maven repository, extract the jar file from the zip, compile my springboot application with
the jar file and include the jar into my application target jar file ...
0
votes
0
answers
65
views
Why does `dependency:tree -Dexcludes=a.b.c` not always exclude a.b.c?
I want to quickly see a list of relevant module dependencies. Using dependency:tree, I want to filter out internal and optional dependencies and their respective transitive dependencies.
For this, I ...
0
votes
1
answer
763
views
maven-dependency-plugin could not be resolved
I am trying to build my project using maven but keep on getting following error.
[ERROR] Plugin org.apache.maven.plugins:maven-dependency-plugin:3.1.1 or one of its dependencies could not be resolved: ...
0
votes
1
answer
291
views
Find source of outdated dependencies indicated by Versions Maven Plugin
In my Maven project (an aggregate project with child projects) I issue the following command for the Versions Maven Plugin:
mvn versions:display-dependency-updates
There are a couple of outdated ...
0
votes
2
answers
276
views
How to refresh Maven artifacts that has been redeployed?
I've configured my nexus repository with the Allow Redeploy deployment policy and now I need to refresh my local repository to reflect release redeployments (getting the artifacts uploaded by other ...
0
votes
0
answers
26
views
Need maven dependency plugin to build dependency locally
I'm using mvn dependency:tree to print out dependency of my project.
I have 2 pom.xml in my project, 1st pom.xml genearates a.jar, 2nd project uses a.jar
I'm removing some unused dependencies from 1st ...
2
votes
3
answers
5k
views
How do I detect which dependencies and which libraries in the project are used or which are not?
Some 3rd party libraries and dependencies are obsolete or outdated in my Maven project. How do I detect which ones are used and which are not? How do I update outdated ones?
I want the unused ones to ...
0
votes
0
answers
82
views
Which plugin can copy classes from specific dependency into final jar
I created a maven parent project, where I have:
Parent pom:
<modules>
<module>my-project-solution-a</module>
<module>my-project-solution-b</module>
<module&...
0
votes
1
answer
49
views
How can I reference a classpath file in the java command?
It is possible to generate a classpath file during a build, for instance using the maven-dependency-plugin to create a file named classpath:
mvn dependency:build-classpath -Dmdep.outputFile=classpath
...
0
votes
0
answers
136
views
maven-dependency-plugin : "useSubDirectoryPerArtifact" parameter not affected by "useBaseVersion" parameter
I'm trying to unpack some dependencies with maven-dependency-plugin.
I want each dependency in its own directory named with the artifact Id and the artifact version
For example :
target/unpacked/...
0
votes
0
answers
179
views
How to unpack the zip of one repo to another repo using Maven Pom.xml and read it by dockerfile?
I have one zip artifact of one repo present on the nexus repo. In compile phase, I need to download it in another repo using pom.xml and later move it to another folder using Docker.
To unpack the zip,...
1
vote
1
answer
3k
views
mvn go-offline trying to download dependencies not in dependency tree
I have a maven build that fails on executing mvn go-offline, because it tries to download log4j-core:2.11.2 - a version which has been removed from my company's Artifactory due to the Log4Shell ...
0
votes
1
answer
2k
views
Getting a logback.xml from a dependency jar and filtering it with the maven-war-plugin
We have a common logback.xml file that we would like to use across different web apps. It includes a RollinFileAppender which should see files named as the project artifactId. The logback.xml ...
1
vote
0
answers
421
views
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 ...
0
votes
0
answers
828
views
maven dependency plugin not taking changes in pom
I am using maven dependency plugin in my pom, and this is the how I configured it:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<...
2
votes
1
answer
1k
views
Maven often doesn't resolve version number for transitive dependencies - "${project.version}"
I've been suffering this problem for a while now and can't figure out what the issue might be. It is intermittent which is why I give it half an hour here and there to try to solve it but then end up ...
-1
votes
1
answer
184
views
How to append folder to each classpath entry using maven dependency and jar plugin?
I am trying to append folder before for all classpath entries in manifest file.
As you can see in pom file below, I am using jar plugin to add classpath entries to manifest.
With dependency plugin I ...
0
votes
1
answer
858
views
Use of spring-boot-starter jars triggers lint warnings
I have a springboot project that we got going quickly by using the various appropriate spring-boot-starter jars to bring in the appropriate transitive dependencies that we needed. Now, as we get ...
2
votes
1
answer
1k
views
maven-dependeny-plugin 3.2.0 downloading struts 1.3.8
We are using the maven-dependency-plugin to get a ZIP from our nexus for later use. We do this cause it's the easiest way to download from our protected nexus using the integrated maven-user handling.
...
1
vote
0
answers
334
views
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, ...
6
votes
3
answers
9k
views
'Dependency not found' with release 17 while analyzing
One of the project that I was looking into has these relevant configurations:
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target&...
-2
votes
2
answers
372
views
Dependencies' jar-s copied by maven-dependency-plugin aren't installed to local repository
There are modules A, B and C. Module A is a dependency for modules B and C. All jar-s built in the module A are to be distributes into Maven Central but only after integration tests in modules B and C ...
2
votes
1
answer
816
views
Why would Sonatype IQ scan report Guava vulnerability when 'mvn dependency:tree' does not show Guava at all?
Why would Sonatype IQ scan report show (in IntelliJ-IDEA) a Guava vulnerability when mvn dependency:tree does not show Guava at all?
Here is my Sonatype scan result, with a Level-7 Critical ...
6
votes
1
answer
2k
views
maven dependency:list just first level
dependency:list prints entire tree in flat format.
What can I do so it only gives first level only ?
Just to illustrate with dependency:tree
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (...