Questions tagged [maven]
Apache Maven is a build automation and project management tool used primarily for Java projects. This tag is for questions that don't relate to a specific Maven version. Use the gradle tag instead for questions relating to Gradle.
maven
88,936
questions
0
votes
0
answers
22
views
maven transtive dependency scope issue
Hi All when i am executing maven build (./mvnw package) getting below error
RestTemplateConfig.java:[5,35] package org.apache.http.impl.client does not exist
but the same project is working fine on ...
0
votes
1
answer
35
views
Unable to update the maven-core dependency version within the plugin maven-compiler-plugin
I'm trying to resolve a vulnerability (CVE-2021-26291) related to the dependency maven-core version 3.2.5, which is being pulled in by the build plugin maven-compiler-plugin version 3.12.1.
I tried ...
0
votes
1
answer
84
views
Using Jenkins build a Maven project , the artifact is not latest
I use Jenkins to build a Maven Project.
Jenkins pull the lastest code from Gitlab (show on the console. I confirm it is.) ,but the build artifact is not lastest(i got a wrong JAR at target directory).
...
0
votes
0
answers
31
views
Do I need parent and root pom in my project
I have project structure like:
+-module_a/pom.xml
+-parent/pom.xml (parent) // here is only pom.xml file
+-module_b/pom.xml
|
pom.xml (root)
Into the (root) pom are defined modules and build plugin.
...
1
vote
0
answers
23
views
Jacoco code coverage report with karate testcases and maven project , original code and karate testcases present in different project
I want to create jacoco code coverage report of my maven project. My Main code present in different maven project and testcases are present in different maven project. I want code coverage report of ...
4
votes
2
answers
71
views
Is Maven Archetype Quicktstart still up to date?
I am using the Maven Archetype maven-archetype-quickstart as a boilerplate for my Java projects. It works perfectly fine, but I wonder if this is still up to date and if there are better ways to do ...
-1
votes
1
answer
15
views
Jars are not printing from internal url
I am building my maven project with updated setting.xml which not contain any public URL which have some internal URL to our company what i want is i want to run the build and want to print the what ...
0
votes
0
answers
50
views
Jenkins build is failing, After upgrading spring boot version from 3.0.0 to 3.3.0
[click here for logs screenshot][2]
Upgraded spring boot version to 3.3.0
maven-surefire-plugin - 3.2.5
Maven-failsafe-plugin - 3.2.5
Jacoco-maven-plugin- 0.8.11
Upgraded these maven related plugins ...
0
votes
1
answer
26
views
java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet on tomcat 10.1 maven project [duplicate]
I am creating maven web project with Spring configuration I added the
jakarta.servlet-api
Dependency in pox.xml as below
<dependency>
<groupId>jakarta.servlet</groupId>
<...
0
votes
1
answer
49
views
How to fix a BeanCreationException for handlerExceptionResolver in Java Spring after upgrading to Spring Boot 3.x and Spring 6.x?
My application uses both Spring Boot and Spring dependencies. Due to a security vulnerability in spring-web, we have to update from 5.3.33 to 6.x. Currently we are using Spring Boot version 2.7.18, ...
0
votes
1
answer
51
views
Getting java.lang.NoSuchMethodError: org.openqa.selenium.chrome.ChromeOptions.setExperimentalOption error on doing mvn clean test
I am facing a weird issue in my project while running it as I am coming across an issue org.openqa.selenium.chrome.ChromeOptions.setExperimentalOption. Actually, I had first stuck with NoClassDefError....
0
votes
0
answers
27
views
Error while running mvn clean install: Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor)
I receive the following error when trying to run command mvn clean install:
[ERROR] Failed to execute goal org.apache.felix:maven-scr-plugin:1.7.4:scr (generate-scr-descriptor) on project companyname-...
-1
votes
1
answer
68
views
Unable to run maven clean install or mvn package always get these erros
mvn clean install and mvn clean package always fails and I always get the message below:
[ERROR] io.muzoo.ssc.springwebapp.SpringWebappApplicationTests.contextLoads -- Time elapsed: 0.028 s <<&...
0
votes
1
answer
36
views
NoClassDefFound Could not initialize class org.appformer.maven.integration.embedder.MavenSettings$SettingsHolder
When I upgraded the dependency org.codehaus.plexus:plexus-utils from 3.5.1 to 4.0.1, I started getting the error below when the method kieBuilder.buildAll(); gets executed.
Error:
NoClassDefFound ...
0
votes
0
answers
23
views
How to use @org.apache.maven.plugins.annotations.Parameter in not-mojo object with maven plugin
I know that @Parameter can be used directly in mojo, and I know that the documentation of @Parameter says
Beans injected into Mojo parameters are prepared by Sisu JSR330-based container: this ...