I have a Clojure project that I would like to package and use in one of my Java projects that uses Maven.
When I generate a pom.xml file using Leiningen, it sets the groupId to artifactId, but I need the groupId to be the same as my parent Java project.
Also, I would like to be able to specify the packaging type in the pom.xml to be jar
In short: how do I set the groupId and packaging properties in project.clj to generate a pom.xml containing those properties?
Leiningen uses the
groupId/artifactIdnaming convention to distinguish between the two entities. Look at the sample project.clj to see how it’s done. When runninglein pomgroupIdandartifactIdwill be then properly resolved.Sample snippet from the linked
project.clj:EDIT: I missed the question about packaging. AFAICS you can’t specify the packaging property in
project.clj.