- This topic has 5 replies, 2 voices, and was last updated 12 years, 8 months ago by support-swapna.
-
AuthorPosts
-
a06275MemberI’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-swapnaModeratora06275,
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.
a06275MemberSorry 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-swapnaModeratora06275 ,
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.
a06275MemberAha! 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-swapnaModeratora06275,
I am afraid it is not possible to launch the internal M4ME externally.
Let us know if you have any other issues. -
AuthorPosts