Giter VIP home page Giter VIP logo

leiningen-war's Introduction

Leiningen war plugin
====================

This plugin is available at http://clojars.org/

  :dev-dependencies [[uk.org.alienscience/leiningen-war "0.0.5"]]

An example application using the plugin is at:
   http://github.com/maacl/lein-war-test

This plugin adds two commands to leiningen:

lein war
--------

  Create a $PROJECT-$VERSION.war file containing the following directory structure:

  destination                 default source         project.clj 
  ---------------------------------------------------------------------        
  WEB-INF/web.xml             src/web.xml            :webxml
  WEB-INF/appengine-web.xml   src/appengine-web.xml  :appengine-webxml
  WEB-INF/classes             classes                :compile-path 
  /                           src/html               :web-content
  WEB-INF/classes             resources              :resources-path
  WEB-INF/classes             src                    :source-path


lein uberwar
------------

  Create a $PROJECT-$VERSION.war file containing the following directory structure:

  destination                   default source              project.clj 
  ----------------------------------------------------------------------------        
  WEB-INF/web.xml               src/web.xml                 :webxml
  WEB-INF/appengine-web.xml     src/appengine-web.xml       :appengine-webxml
  WEB-INF/classes               classes                     :compile-path 
  WEB-INF/lib                   lib                         :library-path
  /                             src/html                    :web-content
  WEB-INF/classes               resources                   :resources-path
  WEB-INF/classes               src                         :source-path

  Artifacts listed in :dev-dependencies will not copied into the war file

Simple Example
==============

    (defproject example "0.0.1"
      :dependencies [[org.clojure/clojure "1.1.0"]
                     [org.clojure/clojure-contrib "1.1.0"]]
      :dev-dependencies [[uk.org.alienscience/leiningen-war "0.0.5"]
                         [leiningen/lein-swank "1.0.0-SNAPSHOT"]
                         [autodoc "0.7.0"]])

   lein war will create a war file with the following structure:

   WEB-INF/
   WEB-INF/web.xml   <--- taken from src/web.xml
   WEB-INF/classes   <---- taken from classes
   index.html        <---- taken from src/html/index.html

   lein uberwar will create a similar directory structure with the addition:
   
   WEB-INF/lib       <----  taken from lib

Overiding Defaults
==================
    
    (defproject example "0.0.1"
      :dependencies [[org.clojure/clojure "1.1.0"]
                     [org.clojure/clojure-contrib "1.1.0"]]
      :dev-dependencies [[uk.org.alienscience/leiningen-war "0.0.5"]
                         [leiningen/lein-swank "1.0.0-SNAPSHOT"]
                         [autodoc "0.7.0"]]
      :webxml "war/example.xml"
      :compile-path  "build"
      :library-path  "libs"
      :web-content   "html"
      :resources-path "war/resources")

   lein war will create a war file with the following structure:

   WEB-INF/
   WEB-INF/web.xml           <--- taken from war/example.xml
   WEB-INF/classes           <---- taken from build
   index.html                <---- taken from html/index.html
   WEB-INF/classes/templates <---- taken from war/resources/templates

   lein uberwar will create a similar directory structure with the addition:
   
   WEB-INF/lib               <----  taken from libs

Google App Engine
=================

You can optionally include a src/appengine-web.xml file or specify one as :appengine-webxml in the project.

leiningen-war's People

Contributors

alienscience avatar punya avatar vloothuis avatar timothypratley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.