vim-maven-plugin
This plugin provides convenient functions to Apache Maven project.
Main features:
- Detects your editing file if it is under Maven's project(by looking for pom.xml)
- Executes Maven as compiler with supporting of quickfix
- Jump files between source/test code
- Functions for retrieving maven path in current editing buffer
Installation:
VimPlugin(Recommended)
Put following configuration to your vim-plug block of vimrc:
Plug 'mikelue/vim-maven-plugin'
Execute :PlugInstall
Vundle
Put following configuration to your vundle block of vimrc:
Plugin 'mikelue/vim-maven-plugin'
Execute :PluginInstall
Manually
Get the source and copy the source into your runtime path of VIM. Then type "helptags ~/vimfiles/doc/" to build tags of help file.
Use "help maven.txt" to open the help of this plugin.
Limitations:
- This plugin wouldn't read the content of "pom.xml" to setup the context of Maven project. So you should setup directories of source code in your project by default.
How to use
For example:
:Mvn compile
Execute the 'compile' phase of Maven
:Mvn! compile
Execute the 'compile' phase of Maven with opening shell window