Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add Mockito as an agent to your build what is described in Mockito's documentation: https://javadoc.io/doc/org.mockito/mockito-core/latest/org/mockito/Mockito.html#0.3 WARNING: A Java agent has been loaded dynamically (/tmp/r/net/bytebuddy/byte-buddy-agent/1.15.4/byte-buddy-agent-1.15.4.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - The whole feature repository: framework-4.4.6 is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - The whole feature repository: test-data is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - Feature: pax-jdbc-teradata from repository: org.ops4j.pax.jdbc-1.5.7 is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - Feature: pax-jdbc-mssql from repository: org.ops4j.pax.jdbc-1.5.7 is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - The whole feature repository: spring-jdbc/6.0 is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - The whole feature repository: a-tomcat-s is blacklisted, selected for removal from local repo [main] INFO org.opendaylight.odlparent.PopulateLocalRepoMojo - The whole feature repository: pax-web/10.0 is blacklisted, selected for removal from local repo