Questions tagged [pom.xml]
A Project Object Model or POM is the fundamental unit of work in Maven.
pom.xml
5,315
questions
0
votes
0
answers
15
views
StackOverflow using openapi-generator-maven-plugin with a JSON containing Newtonsoft.Json.Linq.JToken
I use openapi-generator-maven-plugin with a JSON which contains a scheme that references itself (Newtonsoft.Json.Linq.JToken). I specify that I cannot modify the JSON input.
At launch, I have ...
0
votes
0
answers
30
views
Multi-module maven application Dockerfile problem [duplicate]
My goal would be that I create 3 services.
1 for the DB
1 for the main application (depends on DB)
1 for testing purposes (depends on main application)
First I would like to do this with just 2 ...
0
votes
0
answers
16
views
How to exclude files from running in testResource
Trying to exclude the files in path "/path/to/exclude/" while running the unit test cases in
"path/to/directory" . Unfortunately the following snippet is not working in pom.xml
<...
0
votes
0
answers
16
views
Error while Jenkins Deploy : java.io.IOException: Unable to open root Jar file 'war:file:/apps/MYBOOTApp.jar*/BOOT-INF/lib/spring-webmvc-6.1.8.jar'
Getting Below error only while deploying it through Jenkins.
App runs Fine in Local
Recently upgraded to springboot 3.3.0 , JDK 17
Jenkins build is successful but deploy fails
Checked spring-webmvc-6....
1
vote
1
answer
39
views
Can `${...}` properties appear in the `<parent>` section of a POM file?
Maven's POM reference says that property values "are accessible anywhere within a POM".
But that can't possibly be 100% true. The resolved value of a property depends on the POM's parent, so ...
0
votes
0
answers
37
views
Change Maven Repository Order
Our enterprise team maintains a settings.xml file that defines various repositories that development teams can use with Maven to build their artifacts.
<repositories>
<repository>
...
0
votes
0
answers
35
views
Maven dependencies configuration in pom.xml [closed]
I am working on a Java project i am not an a programmer however i do it fully with chat gpt 4, sometimes it solve the problems and find the right dependencies but most of the times like now it dont ...
-1
votes
1
answer
39
views
Cannot find spring-boot-starter-oauth2-client no matter the version
I am trying to import the spring-boot-start-oauth2-client into my pom.xml. I have tried using different versions and no matter which version I use, this error pops up:
Dependency 'org.springframework....
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
41
views
Jetty set extraClasspath doesn't work after updating the jetty-maven-plugin
I've been upgrading a spring boot application to spring boot 3 (3.3.1) and so i need to upgrade the jetty version to 12 so i did. But when i try to upgrade the jetty-maven-plugin also it fails on ...
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
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
1
answer
20
views
(spring boot) can't resolve symbol 'validation' jdkversion:11 springboot version:2.6.1311
[it highlights 3bugs,
as you see,i am trying to add revelent dependencies into the pom.xml,but it doesn't work, how to fix it?
the language level of the project structure is 11
The sdk's name is 11
...
0
votes
0
answers
12
views
In my eclipse after running my code I'm getting this error. I generated this project through spring initializer
Below is pom.xml file
I have created so many spring projects till now which, but all of a sudden all those projects are showing similar errors. The architecture of the project on left side is also ...
1
vote
0
answers
11
views
Unable to Resolve Import in Java Project for open-match matchmaking
I'm developing a game using Java and Spring Boot, and I'm integrating Open Match for matchmaking. I'm encountering an issue with resolving the import for openmatch.MatchmakingGrpc in my Java project.
...