GithubHelp home page GithubHelp logo

bernhardbln / lein-uberjar-deploy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silasdavis/lein-uberjar-deploy

0.0 3.0 0.0 107 KB

Clojure Leiningen plugin to deploy uberjar and pom.xml.

License: MIT License

Clojure 100.00%

lein-uberjar-deploy's Introduction

lein-uberjar-deploy

A Leiningen plugin to create and deploy an uberjar and associated pom.xml.

Uberjars are jar files containing your compiled code as well as all of its dependencies. They're used to enable standalone distributions, which can be run with java -jar /path/to/uberjar.

Leiningen's built-in deploy task (lein deploy) deploys a standard, non-uberjar, as can be built with lein jar. lein-uberjar-deploy allows simple deployment of an uberjar in a similar manner to standard deployment.

Usage

Put [theladders/lein-uberjar-deploy "1.0.0"] into the :plugins vector of your project.clj, modified to the current version. For example:

:plugins [[theladders/lein-uberjar-deploy "1.0.0"]]

Add snapshots and releases entries to the :repositories vector of your project.clj. For example,

:repositories [["snapshots" {:id "nexus" :url "http://host:8081/path/to/snapshots"}]
               ["releases"  {:id "nexus" :url "http://host:8081/path/to/releases"}]]

Note: the uberjar created will not be signed, which Leiningen does at deployment-time for release jars that it creates itself (via lein deploy).

Repository credentials are obtained from ~/.m2/settings.xml from the <username> and <password> elements for the <server> with an id matching the :id specified in the :repositories entry.

Run:

$ lein uberjar-deploy

License

Copyright © 2013 TheLadders, Inc

Distributed under the MIT public license.

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.