简体   繁体   中英

unable to see Maven In Eclipse

我在Eclipse Mars中安装了M2E插件,并且在系统中也安装了Maven,但是在尝试导入maven项目时看不到Maven选项,并且在尝试将现有Java项目配置为Maven时也看不到Maven选项。项目。

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 eg

     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 , eg 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM