Use the following to get a Java REPL (jshell) with all the dependencies loaded: mvn compile com.github.johnpoth:jshell-maven-plugin:1.3:run