https://github.com/born2snipe/m_script
handy ruby gem for all the Maven lovers
https://github.com/born2snipe/m_script
Last synced: about 1 year ago
JSON representation
handy ruby gem for all the Maven lovers
- Host: GitHub
- URL: https://github.com/born2snipe/m_script
- Owner: born2snipe
- License: mit
- Created: 2009-12-02T03:28:25.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-12-02T13:50:22.000Z (over 16 years ago)
- Last Synced: 2025-02-17T12:45:33.516Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= M Script
This is a handy ruby script for all the Maven lovers out there! The point of this script is to simplify re-building multiple modules without having to do all the footwork of changing directories.
Example Maven Project Structure:
aggregate
- core
- service
- web-app
Example m.yml
phases:
c: clean
i: install
So now say you need to re-build your 'core' module and your 'web-app' module. To do this all you need to do is type the following:
m ci c ci wa
= What does this mean?
When you say 'ci' this is going to resolve to the phases 'clean' and 'install'. The next argument 'c' represents what module to build c => core module. The next 'ci' is the phases for the ws => web-app module. So you should see now how easy it is to chain modules together to be built.
= How do I run in offline mode?
To run in offline mode it's just as if you were running the mvn command: m ci x -o
= I have arguments that I would like to always be ran with all my maven commands, what do I do?
In your m.yml file just add the 'arguments:' key and add a list of arguments.
example:
arguments:
- -ff
- -o