Generates an Alfresco Module Package (AMP) file from your project, which can be deployed to an Alfresco installation using the Module Management Tool.
What is it useful for?
AMPs are the standard way to package extensions to the open source Alfresco content management system. Being able to develop such extensions in Clojure, therefore, requires the ability for leiningen to emit AMP Files - this plugin adds that capability.
It is highly recommended that you generate new AMP projects using the
lein new
AMP template. Amongst other things, this will automatically add
the lein-amp plugin to the new project's dependencies.
$ lein new amp <projectName>
$ cd <projectName>
$ lein deps
$ lein amp package
$ lein amp install [<path-to-alfresco-war>]
The package
task builds an AMP file from your project.
The install
task will install that AMP into an Alfresco WAR file.
The following configuration options are read from your project.clj
:
; where to look for AMP resources
:amp-source-path "src/amp"
; specify the location to the Alfresco WAR file
:amp-target-war "path/to/alfresco.war"
; or a dependency to the WAR (remember to configure the proper Maven repository)
:amp-target-war [org.alfresco/alfresco "5.0.a" :extension "war"]
Copyright © 2014 Peter Monks (pmonks@gmail.com)
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.