Much like the provided ant execution functionality, eclim also provides commands for running maven 1.x or 2.x.
Eclim provides the following commands:
:Maven [<goal> ...] :Mvn [<goal> ...]
which perform the following steps:
Additionally, if g:EclimMakeLCD is enabled (which it is by default), then the execution of maven will be performed from the current buffer's project root directory, ensuring that mavens's build file discovery method is performed from the buffer's working directory and not your own.
Note that :Mvn MUST have this enabled since maven 2.x no
longer has support for the
Both :Maven and :Mvn also supports use of '!' (:Maven!) just like :make does, which tells Vim not to jump to the first error if one exists.