talios / clojure-maven-plugin

Apache Maven Mojo for compiling clojure scripts to class files
252 stars 74 forks source link

Request for a sample pom.xml that shows how to use this plugin with SpringBoot #126

Closed 30atm closed 2 years ago

30atm commented 2 years ago

Hi, I want to use this plugin in a Spring Boot developed using Spring Tool Suite and Spring Dev tools

I am starting a nrepl after context reload using a context event handlers and starting and stopping nrepl in them

I am unable to get the clojure sources recognized or added to classpath.

Could someone please share a working spring boot pom.xml with this plugin added to it along with .project and .classpath files created by eclipse

thank you

30atm commented 2 years ago

# Referrig to the documenation:

"By changing your projects type to clojure, the plugin will automatically bind itself to the compile, test-compile, and test maven phases."

My project type is jar . Not clojure as I need to build stand alone spring boot jar. So I am unable to get the binding work out of the box

30atm commented 2 years ago

I copied the apache storm project's storm-clojure module's pom.xml . I got the compilation working fine now.

talios commented 2 years ago

Glad you got it working! Sorry I didn't respond earlier - been a long day.