Skip to content

Instantly share code, notes, and snippets.

View JosePaumard's full-sized avatar

José Paumard JosePaumard

View GitHub Profile
@thomasdarimont
thomasdarimont / readme.md
Last active October 17, 2020 13:05
Run a jshell instance with a classpath derived from maven pom.xml file

Linux / OSX

Note that this example uses sdkman.

CP=$(mktemp) && \
mvn dependency:build-classpath -Dmdep.includeScope=compile -Dmdep.outputFile=$CP -q -f ./pom.xml && \
CP=$(cat $CP) && \
$(sdk home java 11.0.8.hs-adpt)/bin/jshell --class-path $CP