Last Updated: February 25, 2016
·
23.16K
· kamilwysocki

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.

Picture

Press Shift+Ctrl+P again and select Package Control: Install Package. Search for SublimeMaven and press Enter.

Picture

It should be installed now. Now go to Tools>Build System and select Maven.

Picture

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!

Picture

3 Responses
Add your response

It seems there is no sublimeMaven plugin for sublime 3. How would one make this work in sublime text 3

over 1 year ago ·

To solve that issue in SublimeText3 just add that file:
https://gist.github.com/akottr/6164036

over 1 year ago ·

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

over 1 year ago ·