Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

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-...
stupidheadlol's user avatar
0 votes
0 answers
78 views

I have a maven project with modules, one is a common module which other modules rely on, ie. in a submodule we might have in pom.xml: <dependencies> <dependency> <groupId>...
nsandersen's user avatar
0 votes
1 answer
78 views

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 ...
cknelle's user avatar
  • 187
0 votes
0 answers
30 views

I'm trying to manage a javax -> jakarta migration, and am using mvn dependency:tree -Dverbose=true heavily. However one problem is it doesn't show provided dependencies, so it's impossible to find ...
Mark's user avatar
  • 1,862
0 votes
0 answers
67 views

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 ...
Kariem's user avatar
  • 4,981
0 votes
1 answer
35 views

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

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
4 votes
1 answer
933 views

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

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
3 votes
1 answer
948 views

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
277 views

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
147 views

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
26 views

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
  • 767
0 votes
1 answer
201 views

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
2 votes
3 answers
6k views

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

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,452
0 votes
0 answers
83 views

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,746
1 vote
2 answers
89 views

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
49 views

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,272
1 vote
1 answer
2k views

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
136 views

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
1 vote
0 answers
623 views

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
  • 977
0 votes
0 answers
179 views

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
  • 713
1 vote
1 answer
1k views

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
3k views

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
104 views

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
  • 119
0 votes
1 answer
2k views

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
151 views

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
421 views

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
213 views

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
828 views

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
2k views

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
1k views

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
72 views

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
  • 84.4k
-1 votes
1 answer
186 views

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 ...
MarekChr's user avatar
  • 1,174
7 votes
3 answers
6k views

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
  • 576
0 votes
1 answer
861 views

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
355 views

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

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,610
0 votes
2 answers
1k views

I have the following plugin configuration : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin&...
sr-01-01's user avatar
  • 115
1 vote
0 answers
336 views

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
532 views

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
9k views

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
  • 32.7k
0 votes
2 answers
570 views

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,642
-2 votes
2 answers
372 views

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
792 views

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
817 views

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.9k
0 votes
1 answer
269 views

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,346
6 votes
1 answer
2k views

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,674
0 votes
0 answers
255 views

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

1
2 3 4 5
9