Giter VIP home page Giter VIP logo

release's Introduction

release

A faster, simpler alternative to maven-release-plugin.

Why?

maven-release-plugin has some problems:

  • It's inefficient (hence, slow).

    It builds the project multiple times. For projects with long build times, this is a deal-breaker.

  • It's cumbersome to use.

    It has a two-step process, with 3 different commands involved (release:prepare, release:perform and release:rollback).

  • Its error messages are less than great.

As a result, where I work people simply didn't use it. maven-release-plugin took so long that they preferred to do the release procedure manually -- which is way error prone. Often tags were not created; apps ended up in production with SNAPSHOT dependencies.

release does the same thing as maven-release-plugin, but:

  1. It only builds the project once.
  2. You execute one command.
  3. It has good error messages.

If anything bad happens, it rolls back the stuff it has to in the same way. Tags created get deleted; modifications made to pom.xml are reverted.

Usage

This is not a Maven plug-in: it's an application.

release <maven args>

release has no arguments of its own. Everything you pass to it will be forwarded to Maven.

Requirements

svn (CLI) and mvn must be on $PATH.

Installation

  1. Create install.properties:

    cp install.properties.example install.properties
    

    Change the value of install.dir to the directory where you want release to be installed (on Windows: backslashes (\) must be escaped (\\).

    install.dir must exist. If it doesn't, please create it or the install script will fail.

  2. Run

    ./install    # Unix-like
    

    or

    install      # Windows
    
  3. Add ${install.dir}/bin to $PATH.

release's People

Contributors

tfga avatar

Watchers

Thiago Almeida 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.