sponsor Vim development Vim logo Vim Book Ad

maven2.vim : Compiler plugin for maven2

 script karma  Rating 72/28, Downloaded by 1409  Comments, bugs, improvements  Vim wiki

created by
Ronald Tschalär
 
script type
utility
 
description
This is a simple compiler plugin to use quickfix with maven2. It sets
makeprg to "mvn", and sets the errorformat appropriately. Activate
with "compiler maven2".

Since this expects the pom.xml to be in the current working directory,
try adding something like the following to your .vimrc:

augroup my-project-X
  au!
  autocmd BufNewFile,BufRead    */project/x/*       lcd <directory-containing-pom>
  autocmd BufNewFile,BufRead    */project/x/*       compiler maven2
augroup END

Known problems: the compiler output uses a 0-based column number, but vim
expects a 1-based column, so the cursor is off by one.
 
install details
Put the script in your ~/.vim/compiler/ directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
maven2.vim 0.1 2006-04-18 6.0 Ronald Tschalär Initial upload
ip used for rating: 3.84.110.120

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github