MyEclipse: No custom Maven builders?
a06275 - Mar 30, 2012 - 05:04 PM
Post subject: No custom Maven builders?
I've got MyEclipse 10 Pro, but can't seem to find a custom Maven Builder against projects? I'm creating a new Maven web-app from archetype, but when going into the project properties, I only have Ant Builder or External Program available to me on clicking the New button. Can anyone help, please?
support-swapna - Apr 02, 2012 - 06:17 AM
Maven builds can be run from the Run As menu item. If you are looking for something in addition to it, please elaborate on what exactly it is.
a06275 - Apr 02, 2012 - 07:16 AM
Sorry about that. I'm specifically looking for a way to automatically run a Maven target that compiles LESS files into CSS whenever a file is saved. The ideal would be that it's only LESS files that effect it.
I was under the impression that a custom builder can be created that will then be included as part of the auto build that runs after a resource is saved, but was unable to create a Maven one.
Any help or advice would be greatly appreciated.
support-swapna - Apr 03, 2012 - 07:53 AM
You can do it by adding a new builder, from the project properties. When you click on New, you get the external program and ant, the external program can be maven. You just need to point to the maven executable, set the working directory (presumably, the project folder) and a parameter, such as the maven goal. If you set it to execute on auto-build, that should work. If you have not already installed maven, then you have to install it.
Let us know how it works for you.
a06275 - Apr 03, 2012 - 10:11 AM
Aha! Thank you. I'd not completely understood what people had previously meant when talking on forum posts about adding a Maven builder. That's very helpful.
The only slight hiccup is that the best I can do to make this builder non-specific to my machine is to make the executable point at bin\mvn.bat inside an Environment Variable of MAVEN_HOME that I've set up on my computer.
Is there any way I can point it at the internal M4ME binary somehow with a variable, to make it completely environment non-specific (apart from requiring MyEclipse Pro, which we all have)?
support-swapna - Apr 04, 2012 - 05:26 AM
I am afraid it is not possible to launch the internal M4ME externally.
Let us know if you have any other issues.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits