Code Monkey home page Code Monkey logo

mvn-dist's Introduction

mvn-dist

Script for building (distributed) maven projects. mvn needs to be installed and available in $PATH.

Builds maven projects in current or specified folder.

Usage: mvn-dist [options]

Options

Builds maven projects in current or specified folder.

Usage:
mvn-dist [options]

Options:
-l, --split-logs            Split log for each application. Makes sense when 
                            utilizing -c|--continue-on-error. 
-e, --examples              Show usage examples. 
-s, --skip-tests            Do not run integration tests. 
-h, --help                  This help page. 
-p, --path=/path/to/source  Path to the folder holding the applications to 
                            build. 
-c, --continue-on-error     Continue building the next application on build 
                            failure. 
-f, --force                 Force mvn-dist to build applications provided by 
                            -a|--applications in given order. This also 
                            supports custom names of folders holding the 
                            applications. 
-v, --verbose               Print full Maven output. 
-n, --do-not-disturb        Do not disturb when build is finished. 
-a, --applications          Comma separated list of applications to build. 

Usage

Examples:
Build all applications in /mnt/data/git
mvn-dist -p /mnt/data/git

Build only application named model without integration tests.
mvn-dist --skip-tests -a model

Build applications model, common and case, force to build in given order.
mvn-dist -a model,common,case -f

Build an application with a custom name.
mvn-dist -a monolith -f

Build all applications in /mnt/data/git,
Continue building the next application on build error and log separately.
mvn-dist -p /mnt/data/git -c -l

Tip:
Use short flags when you need tab completion.
If utilizing --continue-on-error you should consider splitting logs using --split-logs.
Add applications to build in applications.cfg

Known issues and quirks:
applications.cfg and its siblings should be edited using a UNIX flavour due to MS' new-line challenges.
Consider using a terminal with a minimum width of 80 to get decently formatted output.

Configuration files:
${HOME}/.mvn-dist/applications.cfg
${HOME}/.mvn-dist/settings.cfg

mvn-dist's People

Contributors

kevlartux avatar

Watchers

Alf Simen Sørensen avatar  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.