Questions tagged [pom.xml]
A Project Object Model or POM is the fundamental unit of work in Maven.
5,242
questions
1
vote
1
answer
30
views
Quarkus: EnumConstantNotPresentException at runtime
I'm asking for your help today because I'm having problems with my Quarkus upgrade from version 2.11 to 3.6. During this change, I got the following logs:
2023-12-01 14:58:53,946 INFO [io.qua.dep.dev....
0
votes
1
answer
33
views
enforceBytecodeVersion doesn't work with Java 11
I have this configuration in my POM:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1&...
0
votes
0
answers
4
views
Gradle unable to resolve artifact due to missing POM file in repository
I'm encountering an issue with Gradle while attempting to resolve an artifact from a remote repository (declared as maven repository). The artifact seems to be present in the repository, but the ...
0
votes
2
answers
103
views
Error creating bean with name 'platformTransactionManagerCustomizers'
I am learning how to use Spring Boot. I am trying to connect my application with my database, but I am not entirely sure why I am getting this error and how to fix it. I can't find anything online. ...
0
votes
1
answer
41
views
ways to generate jar file from pom.xml
Wanted to check , what produces a jar file from pom.xml with no plugins included? Let say I a class file
my-app/
|-- src/
|-- main/
|-- java/
|-- com/
|-- ...
0
votes
0
answers
35
views
Cannot find main class when running jar file built with maven [duplicate]
I have recently been making my first discord bot in java(JDA). Everything was going well until I tried to build the bot into a runnable jar file so I can host the bot on a server. I can build the file ...
0
votes
0
answers
22
views
Tomcat + jackson-databind => org.apache.tomcat.util.bcel.classfile.ClassFormatException
Having a primitive web application on Tomcat (9.0.63 or 10.1.16), try parsing the JSON and hence adding jackson-databind to pom.xml.
<dependency>
<groupId>com.fasterxml.jackson.core&...
-4
votes
0
answers
23
views
incompatible types: javax.mail.Store cannot be converted to org.apache.catalina.Store [closed]
Importing the mvn project and its library with pom.xml and getting the below error for one of the file.
incompatible types: javax.mail.Store cannot be converted to org.apache.catalina.Store
how to ...
0
votes
0
answers
29
views
NoSuchMethodError: com.sun.xml.ws.util.ServiceFinder.find
I am launching Maven command jaxws:wsdlgen, but it gives me this error
[INFO] jaxws:wsgen args: [-keep, -s, 'C:\Users\ActionICT-Motti\IdeaProjects\DocumentsStorage_v1\target\generated-sources\wsgen', -...
0
votes
0
answers
20
views
Error reading assemblies: Descriptor with ID 'executable-jar-with-dependencies' not found
I can't resolve this error, can you helpe me ?
This my code to pom.xml
Thank you for your help ! I'ts very complicate for me to resolve this bug
<plugins>
<plugin>
<...
0
votes
1
answer
65
views
Update Maven Version
How can we update the version of maven in a java project.
I have tried changing the version in pom.xml file but that is leading to build failures when PR is raised. What other things can be done to ...
0
votes
0
answers
16
views
Sonarqube missing blame files
I'm writing a program in java building it with Maven in an Intelij environment. I'm using pom.xln files. For some reason maven doesn't see my UnitTest files. I get a warnining : Missing blame ...
0
votes
0
answers
13
views
Migrate jws from Java 7 to Java 11
My classes uses the following modules (list is from multiple classes):
import javax.jws.HandlerChain;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.handler.MessageContext;...
-1
votes
0
answers
19
views
Problem getting a spring boot app debugged in IntilliJ
the problem is the IDE can't detect neither missing imports nor errors in the code, and I'm unable to run it, although I have my JDK 21 installed
I initialized my project from spring boot initializer ...
-1
votes
0
answers
50
views
New method "--headless=new" in selenium 4.8.0, It is possible to open browser view like before?
I had to update all the dependencies in project.
Problem is that currently I'm not able to handle new method --headless=new which appears in selenium 4.8.0.
It's very problematic when I can't see ...
0
votes
0
answers
71
views
Access to the system property with key jakarta.xml.ws.spi.Provider is not allowed
I have found this error when executing Maven clean install. I've never seen it before, and cannot find any references online about it. Trying to change dependencies version doesn't helped.
nov 21, ...
-1
votes
0
answers
31
views
compile error while running mvn clean install
while running mvn clean install compile error occurring
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/Hp/AppData/Local/Temp/...
0
votes
0
answers
45
views
package is missing even though installed in java springboot
java: package jakarta.persistence does not exist
I am getting this error even though I have installed this dependency in my spring boot project .
My pom.xml :
<?xml version="1.0" encoding=...
0
votes
1
answer
48
views
How to add wildfly user from server configuration?
I am using Wildfly in a Java application. Here is the configuration on the pom:
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>...
0
votes
0
answers
27
views
How to implement Page Object Models using context browser in Playwright in javascript?
I'm starting with Playwrgiht in Javascript.
I'm using POM+Fixture+ test
Actually:
POM 1:
import { URLS, CREDENCIALES } from '../data/Constantes';
exports.Login = class Login {
/\*\*
\*
* @param {...
0
votes
0
answers
60
views
Visual Studio Code: Project configuration is not up-to-date with pom.xml, requires an update
Version: 1.84.2 (user setup)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:51:52.184Z
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11....
0
votes
1
answer
32
views
Maven: exclude transitive dependency in some modules
The project includes 7 modules.
And the task is to exclude transitive dependency for one library in 4 modules.
Seemingly simple way is to write in each of 4 pom files:
<dependency>
<groupId&...
0
votes
0
answers
59
views
Illegal state exception while running a spring boot application
I am getting this error on running the springboot application :
Error obtained :
java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.http....
0
votes
0
answers
13
views
Using wildcards or something similar in pom files
We are using Selenium in Maven Java projects. An occasional project also uses WinAppDriver.
We have a project called "Utilities" which other projects have as a dependency. One of my ...
0
votes
0
answers
144
views
JAX-WS Web Service Client - JDK 17 - simple Java client w/ a main() - Fails
I have been digging to understand why a simple Java class w/ a main() method that attempts to instantiate a client proxy client call to a JAX-WS web service running on WildFly v27 keeps failing w/ an ...
0
votes
0
answers
58
views
Problem with the pom.xml on a Spring Boot Application
Im working on a Website and im using the Spring Boot Application.
I was trying to host the Website locally first with the server.port=8080 but i get the following error when i try to run my ...
0
votes
1
answer
56
views
Pom type imported dependency cannot be used without version
I have a project with two modules. The core module has the following in pom:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>project.X</...
-4
votes
0
answers
19
views
Null Point Exception : While running 2 test cases through testNG xml at 2nd test cases getting failed [duplicate]
java.lang.NullPointerException: Cannot invoke "io.appium.java_client.android.AndroidDriver.startActivity(io.appium.java_client.android.Activity)" because "driver" is null
at org....
0
votes
0
answers
43
views
Specifying the exact java version in maven and the corresponding version in dokerfile
I'm working on a Java project using Maven where the pom.xml file sets the Java version as 11, without specifying an exact version (e.g., 11.0.3). In the corresponding Dockerfile, I'm using the OpenJDK ...
0
votes
0
answers
24
views
Can parent module have a dependencies in his own submodules?
Maven project structure is as follow:
moduleA
-moduleB
pom.xml
moduleA has a dependency in moduleB. moduleB actually not depend in moduleA.
Why I don't reverse it? make moduleB parent and moduleA ...
0
votes
0
answers
8
views
I'm trying to get started with SDN-WISE
I'm following the steps of [https://sdnwiselab.github.io/docs/guides/GetStarted](Get Started with SDN-WISE)
On the Step 4: Run the Controller when I execute the line mvn package
I got the following ...
0
votes
0
answers
24
views
Finding compatible versions of selenium-java and java-client for WinAppDriver
I had a project which combined Selenium and WinAppDriver (WinAppDriver for the Windows file chooser, etc). I had it working in an old project. Pom files and everything have been updated by users ...
2
votes
1
answer
91
views
How to deploy on Maven Central?
I'm trying to deploy my project into maven central.
I have installed GnuPg via homebrew:
brew install gnupg
so when executing
gpg --version
the following is returned:
gpg (GnuPG) 2.4.3
libgcrypt ...
0
votes
0
answers
11
views
Why does NexusIQ Server still shows the exlude library as a finding after Re-Evaluate Report?
After finding "soap : soap : 2.3.1" as security critical in NexusIQ Server, I decided to exclude the dependency from pom.xml because "soap" was used as a transitive dependency and ...
0
votes
1
answer
26
views
IntelliJ cannot find maven-war-plugin
It gives me this error in pom
The plugin is correctly available in m2 folder
other libraries are also recognized well, and the plugin is available in server...
I've tried to invalidate & ...
0
votes
0
answers
56
views
Log4J ERROR StatusLogger Unrecognized conversion specifier
I am getting the following errors on deployment of my JAR file.
ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern. ERROR StatusLogger ...
0
votes
0
answers
118
views
Migrate jaxws-maven-plugin from Java 7 to Java 17
I am using this configuration in Java 7
<plugin>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version&...
0
votes
0
answers
33
views
Defining Maven properties used in dependency specification outside the pom.xml
I should preface my question by saying I have only cursory familiarity with Maven.
I am working on a (forked) project which requires a private third party dependency that must be provided by anyone ...
0
votes
1
answer
73
views
bean required in Spring application with JPARepository
I have a problem with bean instantiation.
Parameter 0 of constructor in table.football.play.service.impl.PlayerServiceImpl required a bean of type 'table.football.play.repository.PlayerRepository' ...
0
votes
2
answers
42
views
mvn fails to integrate dependency [duplicate]
I have a minimal maven project using fasterxml/jackson-databind
package com.mycompany.app;
import com.fasterxml.jackson.databind.ObjectMapper;
class MyValue { public String name; public int age; }
...
0
votes
0
answers
19
views
maven jar dependency convergence on itself
I am getting below error
Dependency convergence error for com.test.myproject:common1:0.0.0-SNAPSHOT paths to dependency are:
+-com.test.myproject:common1:0.0.0-SNAPSHOT
and
+-com.test.myproject:...
0
votes
0
answers
25
views
Getting "MojoExecutionException"
`Hi,
When I was trying to run a test in different environment using mvn clean install -Dev="qa"
I was getting BUILD FAILURE, MojoExecutionException
console output:
pom.xml:
<project xmlns=...
1
vote
1
answer
99
views
"No file in /home/runner/work/... matched to [**/pom.xml]" error appears during the build process of Maven project
I created a test automation framework built on Maven and already pushed it to the 'develop' branch in my GitHub repo.
It was needed to build my project each time a PR created. So I created a build....
0
votes
0
answers
36
views
Skip maven dependencies based on a flag
I am trying to set up a Parent pom for my services to easily manage dependencies. I have my parent pom like this,
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
...
1
vote
1
answer
1k
views
Error: Full component analysis cannot be performed until the Pom is valid
I am currently working on Java Servlet project on VSCode, using Tomcat Server 9.x, Apache Maven 3.9.5. I have this extension installed named "Red Hat Dependency Analytics".
Whenever I open ...
0
votes
1
answer
39
views
Issue with mvn dependency versions
I have a jar A(version 1.2) which is using 1.4.6 version of jar B.the mvn dependency:tree is showing 1.4.6 version of jar B only.
Now, I use this jar A version 1.2 in jar C and do mvn dependency:tree, ...
0
votes
1
answer
36
views
How do I set SCM for Maven in pom.xml when my repositories are not public?
I'm working on a Java library that is in a private company GitLab repo. It's part of an SDK to be used by customers. I'm trying to figure out how to publish this to Maven Central and I'm stuck on ...
0
votes
0
answers
38
views
jboss-as-maven-plugin pom configuration
I am using jboss-as-maven-plugin into the pom.xml. I can find online some documentation, but not about the configuration...
For example, I have this:
<plugin>
<groupId>org.jboss.as....
0
votes
0
answers
53
views
Exception java.lang.ExceptionInInitializerError [in thread "Worker-xx: Updating Maven Project"
getting this error in 1st line of pom.xml
Exception java.lang.ExceptionInInitializerError [in thread "Worker-xx: Updating Maven Project"]
Cant understand what is wrong.
I have tried the ...
0
votes
0
answers
21
views
Association of jboss-maven-plugin with jboss as server version
How can I associate jboss-maven-plugin version with undelying server version?
For example:
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</...