facebook

What version Maven in ME 8.5 ?

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

    ldolan
    Member

    I’ve got a series of questions about the Maven support. I tried to search them before posting this thread.

    1. What version of maven is “under the hood” in ME 8.5 ??

    2. Where is the actual maven installation directory?? Is there one??
    I have a need to build applications OUTSIDE of ME, from the command line, but when I have a different version of Maven installed on my machine than the one under the hood of ME, then I get some weird behaviors and clashes. So, I’ll need to build from the command line using the same maven installation as ME is using. However, I cannot find the Maven installation anywhere in the ME installation. I’m looking for a mvn.bat or mvn.exe to add to the path, or else some directory to add to the M2_HOME environment variable. It would be nice if ME would add maven to the system PATH when installing instelf. Then, right now, I could just pop open a terminal and do mvn -version and I’d understand right away what version of Maven ME is using

    Sorry for the long winded question!

    #309007 Reply

    Hi ldolan,

    Maven version in ME 8.5 is 0.10.0.
    Coming to your second question, You are right that there will be some conflicts when we install other version of Maven in the system where ME 8.5 is installed. The Maven jars are located in one folder above the “ME installation directory/”, you’ll find “Common/Plugins” folders. In that folder you’ll have 5 folders with the names starting from “org.maven.ide.eclipse.xxx”.
    Please let me know if you need anything else.

    #309020 Reply

    ldolan
    Member

    You are saying that Maven 0.10.0 is running inside MyEclipse 8.5?? Now I’m really confused, that doesn’t make any sense. Maven 2.x.x must be running under the hood in order for anything to work. I’ve got Maven 2.0.5 installed on my machine. Is 0.10.0 the version of some proprietary re-implementation of Maven that the MyEclipse or Maven4MyEclipse team is developing/maintaining ?

    What I’m looking for is something like mvn.bat which comes in the bin directory of any standard Maven installation to add to my PATH system variable, so that I can run Maven2 from the command line. I have not found any mvn.* file in the Common\plugins directory you directed me to.

    You see, one of the major benefits of using Maven2 (or ANT or any other) as a build framework is that it is IDE independent. One developer can develop an app using MyEclipse, check it into CVS in Maven2 structure, and another developer can check it out in Maven2 structure and use NetBeans, JBuilder, or even Notepad++ if that’s what they desire. So, it doesn’t do a lot of good to use some proprietary version of Maven embedded in the IDE that doesn’t work the same as an actual Maven installation. I need to test the build outside of the IDE.

    Is it true that with ME 8.5 on my machine, I will not be able to do command line Maven builds external to the IDE ????

    #309021 Reply

    ldolan
    Member

    BTW, thanks for your time answering my questions, hehe

    #309046 Reply

    Hi ldolan,

    The version of the Maven is available at “Window–>Preference–>MyEclipse–>Maven4MyEclipse–>Maven–>installation”. The best suggestion is to install the Maven 3 version in your system and try.
    If you want to add your external Maven runtime to the existing MyEclipse, add your runtime in the above said Maven Installations and go to “Run–>Run Configurations…” and double click on the Maven Build. your runtime is available in the drop down of Maven Runtime select box.

    Thanks,
    Chakri Vedula.

    #309047 Reply

    Hi ldolan,

    Also you can refer some important information about m2eclipse at – http://m2eclipse.sonatype.org/m2eclipse-faq.html#16

    Thanks,
    Chakri Vedula.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: What version Maven in ME 8.5 ?

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