ms surya kumar
ms surya kumar

Reputation: 23

unable to see Maven In Eclipse

I installed M2E plugin in Eclipse Mars and also Maven is installed in my system but I was unable to see an Maven option while I'm trying to import the maven project and also unable to see Maven option while trying to configure existing Java project to Maven project.

Upvotes: 0

Views: 623

Answers (1)

joc
joc

Reputation: 1446

If you have all correct (64b) versions, follow this steps.


Installing Maven in Windows

  • Extract Maven zipped file in any folder (preferible C:\Program Files\)

  • Add the bin directory of the created directory apache-maven-3.0.3 to the PATH environment variable.

  • Check environment variable value e.g.

    echo %JAVA_HOME% 
    

    Must look like:

    C:\Program Files\Java\jdk1.7.0_51
    
  • Adding Maven folder to PATH:

    • Add the unpacked distribution’s bin directory to your user PATH environment variable by opening up the system properties (WinKey + Pause)
    • Select the “Advanced” tab, and the “Environment Variables” button
    • Selecting the PATH variable in the user variables with the value and addd to it C:\Program Files\apache-maven-3.0.9\bin. Check your folder is same!!!
    • If not set, the same dialog can be used to set JAVA_HOME to the location of your JDK, e.g. C:\Program Files\Java\jdk1.7.0_51
  • Verifying

    • Open a new command prompt (Winkey + R
    • type cmd
    • run mvn -v to verify the installation.

Upvotes: 1

Related Questions