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.

83,887 questions
0votes
0answers
10views

Failed to scan [jar:file:/app.jar!/BOOT-INF/lib/spring-webmvc-5.2.5.RELEASE.jar!/] from classloader hierarchy

Trying to deploy my web app through Kubernetes cluster and I receive this error that prevents my pod from running. It fails with a BackOff error. When I run 'kubectl logs pod xxx' to try and ...
0votes
0answers
8views

Servlet.init() for servlet [Jersey Web Application] threw exception

An exception is showing up while running a Jersey-framework based web project in a Tomcat server using Eclipse. "The server encountered an unexpected condition that prevented it from fulfilling ...
0votes
0answers
13views

Jenkins Config File Provider not working for Maven Settings.xml

I'm trying to use the Config File Provider in a declarative Jenkins pipeline. In the Managed Files I've configured a maven settings.xml file with id c1146be8-6829-4c3a-a3ac-86877d0cdf9b Then in the ...
0votes
1answer
21views

spring boot square SDK latest version update issue in maven

As currently i am changing version for square java sdk to latest which is 20.1.0.20220616 and current version i am using is 2.20190313.0 so, after dependency resolve in pom.xml it is giving below ...
0votes
0answers
30views

NoClassDefFoundError, but the code works and the class exists

I have a Maven project and I'm using Aspose cells to manipulate an xlsx file. Aspose is configured through the POM <?xml version="1.0" encoding="UTF-8" standalone="no"?...
0votes
1answer
15views

Getting java.lang.NoClassDefFoundError: com/aspose/cells/FileFormatUtil Error when running Spring Boot project on Apache tomcat

I am getting error while running method, when i run the code as tomcat server. "java.lang.NoClassDefFoundError: com/aspose/cells/FileFormatUtil" I have created a spring boot project. I am ...
-1votes
0answers
24views

Failed to compile with maven for the first time

The first time you run mvn compile after a successful maven configuration, it says 'mvn' is not an internal or external command, nor is it a runnable program or batch file
0votes
1answer
19views

How to run API automation test scripts in different environments, specifically I need to run in QA environment & prod environment

Hello folks , I'm testing Rest API , using rest-assured . maven , cucumber , and as a programming language I use JAVA, so I'm facing an issue , to run my some test in production environment,so I have ...
0votes
1answer
20views

How to specify Spring boot profile when running tests in IntelliJ

With IntelliJ, I can specify a Spring boot profile to run when starting a service However, if I run mvn clean install, then the tests are run with the default profile, which causes them to fail. How ...
0votes
0answers
17views

A required class was missing while executing net.masterthought:maven-cucumber-reporting:5.7.0:generate: org/apache/commons/lang3/ArrayUtils

Jenkins mvn --version: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00) Maven home: /appl/xxx/maven/apache-maven-3.3.9 Java version: 1.8.0_51, vendor: Oracle ...
1vote
0answers
53views

Spring Native runtime error : Unsupported method java.lang.Class.isSealed() is reachable

I am trying to execute my native image built by Spring Native and Spring Boot. Executing my app generated in the /target directory give me the following error : WARN 18883 --- [ main] w.s.c....
0votes
1answer
21views

Apache camel splitter not populating properties in the exchange

I have a route Producer -> Split -> Processor and in the processor, I am trying to find out if the current exchange being processed is the last one to get split. According to the camel split ...
0votes
0answers
20views

Maven copy external artifacts that are not dependencies of the project during build

I'm looking for a way to copy jar files from the repo to a particular folder during build, to access this folder later on from the spring-boot webserver (e.g. /target/workspace/jars-go-here) At first ...
2votes
0answers
19views

Digital Service Signature (DSS) error on compile project

Environment: openjdk version "1.8.0_322" OpenJDK Runtime Environment (Temurin)(build 1.8.0_322-b06) OpenJDK 64-Bit Server VM (Temurin)(build 25.322-b06, mixed mode) On Visual Studio Code (...
0votes
0answers
18views

Created a MAVEN project for running Selenium test cases in Linux Ubuntu Machine, On running it from Jenkins DIsplaying Build Failure

Execute Shell Command cd eclipse workspace/testleaf && mvn clean && mvn test [[1;33mWARNING[m] For this reason, future Maven versions might no longer support building such malformed ...

153050per page