How do I load environment variables to load application context before integration test runs

I’m working on multi-module maven project using Spring Boot 2.4.0. I have written integration tests for a module. The test class looks similar to this. @RunWith(SpringRunner.class) @SpringBootTest(…

Spring boot dependency error for some of the dependencies in maven

Below is my pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache….

How to reuse Maven configuration XML fragments in other configurations

I have dozens of similar but not identical plugin execution configurations. I’d like to re-use parts of them. The part that I’d like to re-use might look like this: …

How to print exceptions on console? I am using TestNG and Maven

I want to see the exceptions on console. I am using TestNG with Maven as a build tool. I have defined my testng.xml in the Maven surefire plugin.

What’s the difference between the maven-dependency-plugin and dependencyManagement

I am confused about the difference between the artifactItem defined in maven-dependency-plugin and the dependency defined in dependencyManagement/dependencies in maven. My real question is why do you …

Github Java Maven Actions continuous integration POM is referencing itself

I’m having this problem with Github Actions (continues integration) where the project i made in maven doesn’t succeed because the POM is referencing itself. However i have no idea how to fix this. I …

Get version number of a dependency from pom.xml using command line and use that version number to tag a docker image

I have a pom file. I want to read the version of the first dependency in the dependencies tag and use that version to tag our docker image. I am using this command to get the project version. mvn …

can I include dependent jar files directly in a jboss EAP 7.3 container?

I am migrating a java ear application from weblogic to jboss. The application is an ear with the below maven dependency on antlr in the pom: antlr …

Is there a way to invoke a java code (something like custom maven plugins) in bazel build?

I made a plugin to run it during compilation of maven modules. But since my org is now moving to bazel — Do we have a way that we can directly run plugins(mojos)in bazel? If not, is there a way …

Cannot prepare the release because you have local modifications :

I am trying to do a Maven realeas prepare but this error keeps happening I tried to execlude the root pom from being checked but it goes now to the other poms [ERROR] Failed to execute goal org.apache….