(Added category, clean up) |
No edit summary Tags: Visual edit apiedit |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=1042 |
|id=1042 |
||
+ | |previous=1041 |
||
− | |title=use maven with quickfix |
||
+ | |next=1043 |
||
− | |created=November 8, 2005 |
+ | |created=November 8, 2005 |
|complexity=basic |
|complexity=basic |
||
|author=jkw |
|author=jkw |
||
|version=6.0 |
|version=6.0 |
||
|rating=-6/6 |
|rating=-6/6 |
||
+ | |category1=Compiler |
||
− | |text= |
||
+ | |category2=Java |
||
⚫ | |||
⚫ | |||
⚫ | |||
+ | <pre> |
||
− | + | compiler ant |
|
− | + | set makeprg=maven\ -q\ -f\ project.xml\ jar:install |
|
+ | </pre> |
||
− | to your |
+ | to your vimrc. I use the jar:install goal but java:compile will suffice. |
⚫ | |||
− | == |
+ | ==Comments== |
− | Consider {{help|write-compiler-plugin}} |
+ | Consider {{help|write-compiler-plugin}}. |
− | ilya--AT--po4ta.com |
||
− | , November 9, 2005 11:54 |
||
---- |
---- |
||
+ | This tip is for maven, but in this days all people use maven3 (or maven2) and this tip does nothing for that. Or am I wrong? |
||
− | <!-- parsed by vimtips.py in 0.487960 seconds--> |
||
+ | |||
− | [[Category:Compiler]] |
||
+ | :Does maven2 and maven3 not understand the same parameters anymore? If yes, then you should be able to just replace maven by maven2 or maven3 or whatever it is called, if not, well feel free to adjust the tip for maven2 and maven3 then ;) [[User:Chrisbra|Chrisbra]] ([[User talk:Chrisbra|talk]]) 09:04, October 19, 2012 (UTC) |
||
+ | The [https://github.com/JalaiAmitahl/maven-compiler.vim maven-compiler-vim] plugin sets all of this up for you very nicely. |
Latest revision as of 14:53, 26 June 2015
Tip 1042 Printable Monobook Previous Next
created November 8, 2005 · complexity basic · author jkw · version 6.0
Using maven with quickfix is pretty simple, just add:
compiler ant set makeprg=maven\ -q\ -f\ project.xml\ jar:install
to your vimrc. I use the jar:install goal but java:compile will suffice.
Comments[]
Consider :help write-compiler-plugin.
This tip is for maven, but in this days all people use maven3 (or maven2) and this tip does nothing for that. Or am I wrong?
- Does maven2 and maven3 not understand the same parameters anymore? If yes, then you should be able to just replace maven by maven2 or maven3 or whatever it is called, if not, well feel free to adjust the tip for maven2 and maven3 then ;) Chrisbra (talk) 09:04, October 19, 2012 (UTC)
The maven-compiler-vim plugin sets all of this up for you very nicely.