user913659
user913659

Reputation: 81

cant' install sublimemaven plugin successfully

I follow this https://coderwall.com/p/etesrq to install the sublimemaven plugin for my sublime2. All steps seems ok, but I can't get the 'Maven' menu item in 'Tools->Build System'. I have added the "m2_home": "F:/jill/job/software/apache-maven-3.0.4", add "maven_menu_commands": by following https://github.com/nlloyd/SublimeMaven. and restart sublime2 several times. but still can't get it. Could some body help? Thanks

Upvotes: 8

Views: 1860

Answers (3)

marcello
marcello

Reputation: 304

Just adding a working directory tip that I found on this URL: https://gist.github.com/4ndrej/5162986

Once I finished instructions provided by user2951392, I got working Maven menu on sublime text 3. Then I tried to build some projects, but for each one of them I got an error like this: "...there is no pom.xml file on directory E:\sublime...".

So, just change the following content on Maven.sublime-build file:

  • old: "$file_path"
  • new: "${project_path:${folder}}"

With this final change I got my sublime text 3 and Maven 3+ working fine.

Cheers!

Upvotes: 0

krevelen
krevelen

Reputation: 391

Nick Lloyd's SublimeMaven plug-in installed nicely for me on Sublime Text 3 but showed build commands only in the Command Palette (CTRL+SHIFT+P).

Only after I added Andres Koetter's configuration file to the Packages/User directory of my portable SUBLIME_TEXT_3/Data/ dir (or ~/.config/sublime-text-3/ for some) I found a Maven build option in the Tools > Build menu. This new option enables Sublime Text 3's build system run commands for Maven builds, that is:

Upvotes: 2

user2951392
user2951392

Reputation: 11

I find that I don't have "maven" in "tools" -> "build system" either, but using cmd + shift + p , then type in "maven", I can see several commands, one of them is "maven: Run...", I use this command when I need to specify one. Commonly, other default maven commands could satisfy your requirement.

Upvotes: 1

Related Questions