Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
Created May 12, 2010 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugoduncan/398673 to your computer and use it in GitHub Desktop.
Save hugoduncan/398673 to your computer and use it in GitHub Desktop.
(ns myns.plugin
(:import
[maven.clojure.annotations
Goal RequiresDependencyResolution Parameter]
org.apache.maven.plugin.Mojo))
(deftype
#^{Goal "mygoal"
RequiresDependencyResolution "compile"}
Plugin
[ #^{:volatile-mutable true} log
#^{Parameter {:expression "${basedir}"
:required true
:readonly true}}
base-directory]
Mojo
(setLog
[_ logger]
(set! log logger))
(getLog
[_]
log)
(execute
[this]
(.info log (str "Base directory" base-directory))))
(defn make-Plugin
[]
(Plugin. nil nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment