Cant 'install the sublimemaven plugin

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

+7
source share
3 answers

I found that I do not have "maven" in "tools" β†’ "build system", but using cmd + shift + p, enter "maven", I can see several commands, one of them is "maven: Run .. . ", I use this command when I need to specify it. As a rule, other maven commands by default can satisfy your requirements.

+1
source

Nick Lloyd SublimeMaven plugin installed for me on Sublime Text 3 , but showed build commands only in the Command Palette ( CTRL + SHIFT + P ).

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

+1
source

Just adding the working directory tip I found at this address: https://gist.github.com/4ndrej/5162986

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

So, just change the following contents of the Maven.sublime-build file:

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

With this latest change, my lovely text 3 and Maven 3+ work fine.

Hooray!

0
source

All Articles