### Compile and Run nREPL Java Application with Maven Source: https://github.com/nrepl/nrepl-java-example/blob/master/README.md This command compiles the Java and Clojure sources, then executes the main application, which starts the nREPL server. It uses Maven's `compile` and `exec:java` goals to build and run the project. ```Shell mvn compile clojure:compile exec:java ``` -------------------------------- ### Connect to nREPL Server with Clojure CLI Source: https://github.com/nrepl/nrepl-java-example/blob/master/README.md This command uses the Clojure CLI to connect to the running nREPL server. It specifies a dependency on nREPL and then uses the `nrepl.cmdline` tool to establish a client connection to the specified host and port. ```Shell clj -Sdeps '{:deps {nrepl {:mvn/version "0.8.3"}}}' -M -m nrepl.cmdline --connect --host localhost --port 7888 ``` -------------------------------- ### Shutdown nREPL Server from Clojure REPL Source: https://github.com/nrepl/nrepl-java-example/blob/master/README.md This Clojure expression, executed within the connected REPL, calls the `shutdown` method on the `org.nrepl.App/instance` object. This action will stop the nREPL server and disconnect any connected clients. ```Clojure (.shutdown org.nrepl.App/instance) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.