| Author |
Message |
|
|
Post subject: No custom Maven builders?
Posted: Mar 30, 2012 - 05:04 PM
|
|
Registered Member


Joined: Mar 08, 2010
Posts: 9
|
|
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? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 02, 2012 - 06:17 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
a06275,
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. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 02, 2012 - 07:16 AM
|
|
Registered Member


Joined: Mar 08, 2010
Posts: 9
|
|
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 03, 2012 - 07:53 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
a06275 ,
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. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 03, 2012 - 10:11 AM
|
|
Registered Member


Joined: Mar 08, 2010
Posts: 9
|
|
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)? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Apr 04, 2012 - 05:26 AM
|
|

Joined: Nov 11, 2010
Posts: 2148
|
|
a06275,
I am afraid it is not possible to launch the internal M4ME externally.
Let us know if you have any other issues. |
_________________ Swapna
MyEclipse Support
|
| |
|
|
|
 |
|
|