Thanks for your response. I am seeing this error.
[WARNING] Some problems were encountered while building the effective model for com.xyz.-test:jar:2.44.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun.java:tools:jar refers to a non-existing file /usr/lib/jvm/java-11-openjdk/../lib/tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ net.openhft:third-party-bom:3.6.2, /root/.m2/repository/net/openhft/third-party-bom/3.6.2/third-party-bom-3.6.2.pom, line 333, column 29
[WARNING] Some problems were encountered while building the effective model for com.xyz.xxyz:xxyz-test-smart:jar:2.44.0-SNAPSHOT
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun.java:tools:jar refers to a non-existing file /usr/lib/jvm/java-11-openjdk/../lib/tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ net.openhft:third-party-bom:3.6.2, /root/.m2/repository/net/openhft/third-party-bom/3.6.2/third-party-bom-3.6.2.pom, line 333, column 29
Looks like my project has some dependency with jdk8 and here is the reference to the thirdparty pom file file which we do not have control.
.m2/repository/net/openhft/third-party-bom/3.6.2/third-party-bom-3.6.2.pom
<dependency>^M
<groupId>com.sun.java</groupId>^M
<artifactId>tools</artifactId>^M
<version>${java.version}</version>^M
<scope>system</scope>^M
<systemPath>${java.home}/../lib/tools.jar</systemPath>^M
</dependency>^M
I was looking at this solution but here JDK8 is not hardcoded in the pom file.
Note: I have verified that my job is not using jre.