I hit this problem too, and found this article. For Maven3, changing my environment variable name from M2_HOME to M3_HOME did the trick. I am on a Mac running OSX 10.9 with JDK 1.7. Hope this helps.
Note: Please delete M2_HOME, if already set. Eg: unset M2_HOME
More Related Contents:
- JAVA_HOME should point to a JDK not a JRE
- How do I tell Maven to use the latest version of a dependency?
- How do you specify the Java compiler version in a pom.xml file?
- Maven does not find JUnit tests to run
- Problems using Maven and SSL behind proxy
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- How can I convert a .jar to an .exe?
- NoClassDefFoundError on Maven dependency
- The method getDispatcherType() is undefined for the type HttpServletRequest
- Run .exe file in Java from file location
- How do I put all required JAR files in a library folder inside the final JAR file with Maven?
- Package a non-modular JavaFX application
- How to get Windows username in Java?
- How to set order of repositories in Maven settings.xml
- Maven “build path specifies execution environment J2SE-1.5”, even though I changed it to 1.7
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
- How to make a “fat jar” of a Maven project? [duplicate]
- “The filename or extension is too long error” using gradle
- java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument
- Is there anyway to exclude artifacts inherited from a parent POM?
- java stack dump on windows
- NoSuchMethodError on startup in Java Jersey app
- Maven 3.3.1 ECLIPSE: -Dmaven.multiModuleProjectDirectory system propery is not set
- Running a specific Maven plugin goal from the command line in a sub-module of a multi-module reactor project
- Creating Two Executable Jars Using maven-assembly-plugin
- How to make gradle generate a valid pom.xml file at the root of a project for maven users?
- How can I @Autowire a spring bean that was created from an external jar?
- ClassNotFoundException DispatcherServlet when launching Tomcat (Maven dependencies not copied to wtpwebapps)
- Find all drive letters in Java
- Multiple install:install-file in a single pom.xml