I have a unique build situation. I use lein uberwar to build a war from my call app and deploy to beanstalk. This all works great. Now this is due to the requirement that we need to translate the code into the svn repository, where they will manage the assembly that knows nothing about clojure (only java). This is a huge bureaucratic organization, and the process of assembling them is already in place, so installing their lein on their servers is currently out of the question. I know that the lane uses maven under the hood, so I know that this can work theoretically, but I still doubt the two steps of this process.
I went through the military construction process in lein-ring , and the main hangs that I see are that the servlet and listener classes are generated, along with web.xml. I feel that I can provide java files that perform this task, but it is not clear what these java files will contain and where they will ultimately live inside the project structure. Looking at the servlet.clj and listener.clj files that are generated during the final war, they seem very simple, maybe examples already exist for this?
Another big hurdle I see is that the war process calls clojure.core/compile in the project namespace, which generates all class files from the clojure source. Is there any way to call this compilation during build from maven? I almost imagine a java class that handles compilation before clojure.core / compile, but I'm not sure if you are calling clojure from java and not vice versa (normal flow direction) or how to insert this step into the maven base build process.
Any understanding of where to start on any of this would be very welcome! Thanks to everyone.
source share