Maven environment setup on windows

less than 1 minute read

Published:

Steps of maven environment setup on windows

Steps:

  • setup java environment variable in user environment variable
    • JAVA_HOME to java install directory
    • append ;%JAVA_HOME% to path
  • setup maven environment variable in user environment variable
    • M2_HOME=C:\Program Files\Apache Software Foundation\apache-maven-3.3.3
    • M2=%M2_HOME%\bin
    • MAVEN_OPTS=-Xms256m -Xmx512m
    • append ;%M2% to path