89,166 questions
0 votes
0 answers
46 views
Java project dependency jar - only part of new code being recognized
I have a Java service that relies on a dependency jar that I have modified. Within the dependency I have updated 2 different sections of code for unrelated functionality. I have updated the version of ...
2 votes
0 answers
65 views
m2e Workspace Resolution Broken After Upgrading from Eclipse 2021 to 2025
I’m upgrading an old Eclipse setup and ran into a strange issue with m2e workspace resolution. I moved from Eclipse 2021 to Eclipse 2025. I created a completely clean Eclipse installation and ...
1 vote
1 answer
106 views
+50
How do I prevent a Maven mojo parameter from being encoded on write to XML?
I'm writing a custom Maven plugin for building a Flatpak from a Java project. In a Maven mojo I understand we use @Parameter annotations to parse pom.xml file configurations. For example: pom.xml: <...
0 votes
1 answer
64 views
IntelliJ IDEA doesn't see type from .m2 jar
A Maven dependency is loaded, expected types are present in the jar in .m2, yet IntelliJ paints the import in red. I tried deleting the dependency directory and loading it again, it didn't help. <?...
0 votes
1 answer
40 views
Profile plugins executed after pom plugins
I want to use jpackage-maven-plugin, and in order to do so I unpack jdk (windows or linux) based on profiles (windows or linux). The profiles section is: <profiles> <profile> ...
-3 votes
0 answers
72 views
How do I turn my JavaFX application into an executable for Windows? [closed]
My application I want to turn into an executable file. The project is a JavaFX application built with Maven. I've embedded an SQLite database in IntelliJ IDEA. Main class, the entry to the application:...
1 vote
1 answer
258 views
DataJpaTest and AutoConfigureTestDatabase in Spring Boot 4.0.0
I have the following errors using Java 17 with Spring Boot 4.0.0: Cannot resolve symbol 'DataJpaTest' Cannot resolve symbol 'AutoConfigureTestDatabase' The problem happens in a JUnit test class ...
0 votes
0 answers
48 views
How to fix "ClassNotFoundException" when running Spring Boot jar built with Maven? [closed]
I built a Spring Boot application using Maven, and the project compiles without any errors. However, when I run the packaged jar using : java -jar target/myapp-0.0.1-SNAPSHOT.jar I get the following ...
0 votes
0 answers
33 views
Maven ignores central repository overrides when <scope>import</scope>ing pom into dependency management
I have the following Maven settings.xml to make Maven go to my local Maven Central mirror (this is a standard way recommended by JFrog Artifactory): <settings xmlns="http://maven.apache.org/...
0 votes
0 answers
28 views
Payara 7.2025.1 + payara-micro-managed + Arquillian + JUnit 5 - tests always pass outside container
I’m using Payara 7.2025.1 with payara-micro-managed, Arquillian, and JUnit 5. When I run my tests, a Payara Micro instance starts and deploys correctly, but it seems that the tests themselves are ...
0 votes
0 answers
65 views
Kafka producer not able to reconnect to pipeline on restart
System is on two site, facing issues on resiliency so using circuit breaker. When I am on close state then sending message to the primary site on call back on secondary site both are using different ...
0 votes
0 answers
61 views
sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin
I used sonar-maven-plugin 3.11.0.3922 on a java program which was compiled with jdk1.8.0_391_x64, but got the "sonar failed: An API incompatibility was encountered while executing org.sonarsource....
0 votes
2 answers
82 views
Cannot resolve org.springframework.boot:spring-boot-starter-parent:pom:3.5.5
When I run mvn clean install -U, I get the following output: [INFO] Scanning for projects... Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-...
-4 votes
0 answers
86 views
Problems with JDK 11 and error cannot access
Can you help me with my question? I have JDK11 and need access to sun.security.x509 When I compile Spring-Boot project and have error 13:25:33 [main] [ERROR] /.../TestHelper.java:[68,24] cannot access ...
1 vote
0 answers
120 views
Spring Boot's strange warnings in STS for Eclipse
Foreword: I have been looking for a possible solution for many days, finding nothing really similar to my problem. I am reading Craig Walls's book "Spring in Action" (6th edition) to resume ...