maven-plugin


Ⅰ. 插件描述

The Maven plugin for VIM

Ⅱ. 基本信息

创建日期:  2012-05-07
使用用户:  18
Github星:  44
插件作者:  Mike Lue

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mikelue/maven-plugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mikelue/maven-plugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mikelue/maven-plugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/mikelue/vim-maven-plugin

Ⅳ. 文档说明

# vim-maven-plugin
This plugin provides convenient functions to Apache Maven project.

Main features:

  1. Detects your editing file if it is under Maven's project(by looking for pom.xml)
  2. Executes Maven as compiler with supporting of quickfix
  3. Jump files between source/test code
  4. 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

添加新评论