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,911
questions
-1
votes
0
answers
6
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
15
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
7
views
java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet on tomcat 10.1 maven project
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
29
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
22
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....
-2
votes
0
answers
22
views
Multi module Spring boot microservices project in Eclipse/STS [closed]
I am creating spring boot microservice project in STS using maven multi module.
Created parent project with packaging type as pom.
Created microservice1 as jar packaging type which is using the DTO ...
0
votes
0
answers
16
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
38
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
34
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
13
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 ...
0
votes
1
answer
83
views
Java _ keyword giving an error with Java 22
As i am aware, the _ for unnamed variables has been a preview feature [java:21] later released with JDK 22.
This is the code in question
char[] _ = { 'b', 'o', 'b' };
However i get this error
...
-1
votes
2
answers
24
views
NoClassDefFoundError exception after updating to the latest maven-surefire-plugin and latest junit5
I've got the following issue while I've been trying to use latest version of the JUnit5 (5.10.3) and latest version of the maven-surefire-plugin (3.3.0).
Caused by: org.apache.maven.surefire.booter....
0
votes
0
answers
28
views
Maven, how to terminate angular frontend
I am using Maven in combination with Quarkus and Angular for my website.
In order to start and stop the Angular frontend with the quarkus backend I have the following plugin set up in my pom.xml:
&...
0
votes
0
answers
8
views
Entity mapper is deprecated in spring-data-elasticsearch 4.1.15 , what should I use instead of that in elastic search config file
@Bean
public ElasticsearchRestTemplate elasticsearchRestTemplate() {
return new ElasticsearchRestTemplate(elasticsearchClient(), entityMapper());
}
@Bean
@Override
public EntityMapper ...
0
votes
0
answers
32
views
Unable to initialize spring boot app using jetty:run goal
I've been facing a critical issue from past one week on jetty web application deployment can any one please assist me where I'm doing the wrong stuff?
Description:
I'm building a Spring Boot (version:...