diff --git a/content/research/java.md b/content/research/java.md index e74f6f9..4717aaf 100644 --- a/content/research/java.md +++ b/content/research/java.md @@ -3,4 +3,5 @@ title = "Java" weight = 106 +++ +- [Shell With All Maven Classes](@/research/java/maven-shell.md) - [Abstract Classes Resolution Order](@/research/java/abstract.md) diff --git a/content/research/java/maven-shell.md b/content/research/java/maven-shell.md new file mode 100644 index 0000000..c4b3491 --- /dev/null +++ b/content/research/java/maven-shell.md @@ -0,0 +1,10 @@ ++++ +title = "Shell with All Maven Classes" ++++ + +``` +alias mvn-shell='jshell --class-path $(find ~/.m2/repository/ -name "*.jar" | tr "\n" ":")' +``` + +This alias loads all classes in the Maven (m2) repository and make them +available to the shell.