Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

How do I package another app with my own resource files?

I want to reutilize an app but add my own resource files to it. "appToReutilize" is a uber JAR (aka fat JAR) except the resource files. myApp's project has no code, just src/main/resources/*,...
Alexandre Tavares's user avatar
0 votes
0 answers
16 views

maven dependency:list-classes transitive not working with tar.gz dependencies

I want to be able to get a list of all classes that an artifact depends on. The maven-dependency-plugin goal list-classes with parameter transitive set to true does exactly what I need. Except there ...
Kyle Seaman's user avatar
0 votes
1 answer
248 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: ...
Prasu's user avatar
  • 1
1 vote
1 answer
260 views

How to prevent maven-dependency-plugin from downloading log4j?

This question is current at least as of version 3.6.1 of the plugin. When using the maven-dependency-plugin, it downloads log4j 1.2.12. It happens when the analyze-dep-mgt goal is run, that's the goal ...
Nth Dimension's user avatar
0 votes
0 answers
30 views

how to fix the netty-handler violation from aqua scanner report under application insights

I'm facing the netty-handler violation from aqua scanner report for my maven project, where the parent path is showing as /applicationinsights-agent.jar. No fix version is suggested, to fix this I ...
mehala smd's user avatar
0 votes
1 answer
95 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 ...
Garret Wilson's user avatar
1 vote
2 answers
498 views

maven-dependency-plugin 3.6.+ started to find new 'Used undeclared dependencies found' during dependency:analyze goal

I'm trying to migrate a project from java 11 to 21, for this i need to update the dependency plugin from 3.1.2 to 3.6.+ (the lower one doesn't support 21) <plugin> <groupId>org.apache....
Dmitriy Ten's user avatar
0 votes
2 answers
127 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 ...
Santiago Ruiz's user avatar
0 votes
0 answers
58 views

How do I execute only the process-sources phase without building the whole maven project?

So according this this: https://maven.apache.org/ref/3.9.4/maven-core/lifecycles.html I should be able to run something like: mvn process-sources But it fails, for being unable to resolve an artifact ...
user avatar
0 votes
0 answers
19 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 ...
rhbc73's user avatar
  • 759
0 votes
1 answer
95 views

After compiling the proto file, I get "com.google cannot be resolved to a type" error in the created java classes

I'm working on a Maven project in Visual Studio Code. I'm using this command to compile the proto file: protoc --plugin=protoc-gen-grpc-java=/home/ayaz/Downloads/protoc-gen-grpc-java-1.56.0-linux-...
Hüsnü Ayaz's user avatar
0 votes
3 answers
1k 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 ...
Muhammed Hakan ÇELİK's user avatar
2 votes
1 answer
3k views

Unable to process file error with maven-dependency-analyzer

mvn dependency:analyze on my project is unable to process files (see log below). I can't understand why, the compilation seems OK since I can run the application fine. The parent pom.xml configures ...
jjazzboss's user avatar
  • 1,422
0 votes
0 answers
71 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&...
victorio's user avatar
  • 6,586
1 vote
2 answers
63 views

Maven Command Dependencies

I am trying to execute "mvn license:add-third-part" on a server, that is not connected to the web. It's missing some dependencies. I tried to add them manually, but it says that still some ...
Torben's user avatar
  • 13
0 votes
1 answer
38 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 ...
user2515975's user avatar
  • 1,212
1 vote
1 answer
1k views

The POM for org.json:json:jar:20210118 is missing, no dependency information available

I am adding jar dependency in pom.xml file in maven project <dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20210118</...
Ranga chimalgi's user avatar
0 votes
0 answers
107 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/...
Clément Honoré's user avatar
0 votes
0 answers
460 views

How to use the artifact located in local .m2 repository instead of looking in nexus?

I have an artifact in the form of an WAR file which i want to store in my local .m2 repository. This WAR file is NOT yet present elsewhere i.e in any other URL repository like nexus etc. C:\Users\...
TestUser's user avatar
  • 947
0 votes
0 answers
161 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,...
ajayv's user avatar
  • 703
1 vote
1 answer
621 views

mvn dependency:list -DoutputFile for Multi Module project

I have maven multi module project(parent and 2 child modules) and when i issue mvn dependency:list -DoutputFile="maven_dependencies.txt", output file only listing last module output. How to ...
chakravarthi's user avatar
1 vote
1 answer
2k 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 ...
prodigaltim's user avatar
0 votes
0 answers
95 views

Remove an undeclared maven dependency not having any parent

I am facing an issue wherein my pom file which is inheriting from a parent throws a warning - Declared unused dependency found. The issue is my pom file does not have this dependency defined ...
Ishita's user avatar
  • 109
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 ...
ceepan's user avatar
  • 95
1 vote
2 answers
109 views

Unable to get the auto-suggestion for annotations for springframework inspite of using the dependency

I have create a spring project from spring initializer and have imported it to IntelliJ, have included the Web dependency while creation but i am not getting the auto suggestions for annotations ...
Fullstack Developer's user avatar
1 vote
0 answers
406 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 ...
pikachu07's user avatar
0 votes
0 answers
173 views

maven-dependency-plugin usage to download dependency jars

Hoping someone can explain how to set the plugin options correctly. I am looking to have a pom file that someone could execute an mvn command on to download all the jars of the dependencies (...
JetStream's user avatar
  • 550
0 votes
0 answers
758 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> <...
ethicalhacker's user avatar
1 vote
2 answers
1k views

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 ...
ethicalhacker's user avatar
2 votes
1 answer
828 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 ...
Oskar Lund's user avatar
0 votes
0 answers
68 views

Use Maven Artifacts Installed by Jenkins Job A in Job B

I have a multi-module Maven project that installs a whole bunch of artifacts (with different classifiers) into the local Maven repository. I also have a second Maven project that uses the Maven ...
Bombe's user avatar
  • 83.4k
-1 votes
1 answer
163 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 ...
Wortig's user avatar
  • 1,118
6 votes
3 answers
5k views

mvn dependency:tree -Dverbose hangs and never finishes

I have a version conflict in transitive dependencies in my project, and I'm trying to use mvn dependency:tree -Dverbose to find the version conflict. However, whenever I run mvn dependency:tree -...
Alex A's user avatar
  • 547
0 votes
1 answer
688 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 ...
Jeff Bennett's user avatar
  • 1,056
0 votes
1 answer
316 views

How can I exclude artifacts by packaging in maven-dependency-plugin:copy-dependencies

I'm working in a complex tomcat configuration where I'm using third party proprietary service that is distributed as WARs. In the servlet container I have 10 WARs deployed where only one is coded by ...
Javier Vilarroig's user avatar
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. ...
TomStroemer's user avatar
  • 1,482
0 votes
2 answers
1k views

Goal copy-dependencies in maven-dependency-plugin is not executed

I have the following plugin configuration : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin&...
sr-01-01's user avatar
1 vote
0 answers
246 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, ...
scarvish's user avatar
0 votes
0 answers
471 views

Maven: How to compile with and without download Artifact Sources|Javadoc through parameters?

In Maven for a cloned project (even multi-module) from GitHub if the mvn compile command is executed mostly happens the following: it downloads all the dependencies declared according in the pom.xml ...
Manuel Jordan's user avatar
6 votes
3 answers
8k 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&...
Naman's user avatar
  • 30.9k
0 votes
2 answers
337 views

How to add a Maven project as dependency in another maven project and make live changes to it instead of JAR dependency

I tried to find a lot of answers but could not find any which works as expected. So posting here. It can be a possible duplicate but unable to find any right answers. Let's consider project A as my ...
BATMAN_2008's user avatar
  • 3,360
-2 votes
2 answers
336 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 ...
Thed's user avatar
  • 23
2 votes
0 answers
725 views

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 ...
Stephen's user avatar
  • 21
2 votes
1 answer
627 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 ...
djangofan's user avatar
  • 29.4k
0 votes
1 answer
255 views

How to get a Maven dependency to propagate from parent pom to sub-module?

I have a Maven multi-module project. I want to define dependencies in the parent pom , (type pom, not jar) and have sub-modules have the dependency in scope for the code I write. No matter what I do,...
user10664542's user avatar
  • 1,276
5 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 (...
Jigar Shah's user avatar
  • 2,624
0 votes
0 answers
231 views

maven-dependency-plugin unpack of large file size issue

The maven build is failing when the maven-dependency-plugin is trying to unpack because of the file being larger than 4gb. Is there an option or configuration to fix this? One could easily reproduce ...
Chandra Pinjala's user avatar
0 votes
0 answers
218 views

Output list of dependencies from POM.xml as text file

I need to export a list of all dependencies from my POM as text file during mvn package command execution. The text file should contain following information about each dependency: lib name URL ...
Kane's user avatar
  • 1
4 votes
2 answers
5k views

maven-dependency-plugin can't exclude test-scope dependencies

I'm using maven-dependency-plugin:copy-dependencies to copy all dependencies into target/dependency directory. My pom.xml is: <plugin> <groupId>org.apache.maven....
Kirill's user avatar
  • 8,151
0 votes
0 answers
1k views

How to pack properties file in jar using maven

I have been trying to pack the properties file inside my jar using Maven but no luck so far. Project Structure: src/main/java All java source files src/test/java All test java source files ...
Varun Jain's user avatar
  • 1,391

1
2 3 4 5
9