facebook

No custom Maven builders?

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #324832 Reply

    a06275
    Member

    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?

    #324863 Reply

    support-swapna
    Moderator

    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.

    #324865 Reply

    a06275
    Member

    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.

    #324907 Reply

    support-swapna
    Moderator

    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.

    #324915 Reply

    a06275
    Member

    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)?

    #324949 Reply

    support-swapna
    Moderator

    a06275,

    I am afraid it is not possible to launch the internal M4ME externally.
    Let us know if you have any other issues.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: No custom Maven builders?

You must be logged in to post in the forum log in