Maven plugins are now supported by :pom-plugins to avoid name conflict

with Leiningen :plugins vector. 

Added maven <configuration/> tag inside of plugin definition.

Added usecase of :pom-plugins in sample.project.clj
This commit is contained in:
Dominik Dziedzic 2013-09-12 00:18:11 +02:00
parent b1529ed8e3
commit bac42c795a
2 changed files with 9 additions and 2 deletions

View file

@ -361,6 +361,12 @@
;; Extensions here will be propagated to the pom but not used by Leiningen.
:extensions [[org.apache.maven.wagon/wagon-webdav "1.0-beta-2"]
[foo/bar-baz "1.0"]]
;; Plugins here will be propagated to the pom but not used by Leiningen.
:pom-plugins [[com.theoryinpractise/clojure-maven-plugin "1.3.13"
[:configuration [:sourceDirectories [:sourceDirectory "src"]]]]
[org.apache.tomcat.maven/tomcat7-maven-plugin "2.1"]]
;; Include <scm> tag in generated pom.xml file. All key/value pairs
;; appear exactly as configured. If absent, Leiningen will try to
;; use information from a .git directory.

View file

@ -237,13 +237,14 @@
[:directory (:target-path project)]
[:outputDirectory (:compile-path project)]
[:plugins
(if-let [plugins (seq (:plugins project))]
(if-let [plugins (seq (:pom-plugins project))]
(for [[dep version configuration] plugins]
[:plugin
[:groupId (or (namespace dep) (name dep))]
[:artifactId (name dep)]
[:version version]
;place for maven configuration tag
;place for maven configuration tag
[:configuration configuration]
]
))