Skip to content

Instantly share code, notes, and snippets.

@moznion
Created January 23, 2013 16:07
Show Gist options
  • Save moznion/4608747 to your computer and use it in GitHub Desktop.
Save moznion/4608747 to your computer and use it in GitHub Desktop.
Expanded maven command (?)
#!/bin/sh
if [ -f pom.json ] ; then
if [ -f pom.xml ] ; then
mv -f pom.xml pom.xml.old
fi
# TODO Specify the own pass to script.
/usr/local/script/json2xml.pl pom.json
fi
mvn $@
@moznion
Copy link
Author

moznion commented Jan 23, 2013

Write following code into “.bashrc” (or “.bash_profile”),

alias mvn=/pass/to/this/shell/script

...HAPPY!!!!!! (seriously?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment