How to set up Maven in Sublime Text
If you build your project in Maven and use Sublime Text for coding, this trick may be useful. I assume you have Package Control already installed.
First, add repository with SublimeMaven plugin. To do this, press Shift+Ctrl+P, select Package Control: Add Repository. Type in https://github.com/nlloyd/SublimeMaven and press Enter.
Press Shift+Ctrl+P again and select Package Control: Install Package. Search for SublimeMaven and press Enter.
It should be installed now. Now go to Tools>Build System and select Maven.
Now open folder with you project (having pom.xml in it), press Ctrl+B. Type in your desired Maven parameter, press Enter and you're good to go!
Written by Kamil W
Related protips
3 Responses
It seems there is no sublimeMaven plugin for sublime 3. How would one make this work in sublime text 3
To solve that issue in SublimeText3 just add that file:
https://gist.github.com/akottr/6164036
I coudn't find "maven" in "tools" -> "build system", but I can get around this issue by typing ctrl+alt+p and using "maven: Run...", as stated in: http://stackoverflow.com/questions/20986087/cant-install-sublimemaven-plugin-successfully