The m2e plugin uses it’s own distribution of Maven, packaged with the plugin.
In order to use Maven from command line, you need to have it installed as a standalone application. Here is an instruction explaining how to do it in Windows
Once Maven is properly installed (i.e. be sure that MAVEN_HOME
, JAVA_HOME
and PATH
variables are set correctly): you must run mvn eclipse:eclipse
from the directory containing the pom.xml
.
Related Posts:
- Eclipse/Maven error: “No compiler is provided in this environment”
- Maven skip tests
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- Why Maven project is tied to J2SE-1.5 by default?
- Maven 3 and JUnit 4 compilation problem: package org.junit does not exist
- web.xml is missing and
is set to true - How to force maven update?
- Cannot change version of project facet Dynamic Web Module to 3.0?
- Connecting to Git team provider failed
- web.xml is missing and
is set to true – web.xml is there and can’t edit deployment assembly - How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds
- Deploying Maven project throws java.util.zip.ZipException: invalid LOC header (bad signature)
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- A fatal error has been detected by the Java Runtime Environment. EXCEPTION_ACCESS_VIOLATION
- mvn command is not recognized as an internal or external command
- web.xml is missing and
is set to true - Getting “Skipping JaCoCo execution due to missing execution data file” upon executing JaCoCo
- How to resolve Unable to load authentication plugin ‘caching_sha2_password’ issue
- “The import org.springframework cannot be resolved.”
- Maven Could not resolve dependencies, artifacts could not be resolved
- “Source folder is not a Java project” error in eclipse
- Maven dependency update on commandline
- How do I enable index downloads in Eclipse for Maven dependency search?
- How to uninstall Eclipse?
- Can’t start Eclipse – Java was started but returned exit code=13
- Can’t start Eclipse – Java was started but returned exit code=13
- Eclipse IDE for Java – Full Dark Theme
- Is there a way to convert all comments into javadoc comments? [Eclipse/Java]
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- Editor does not contain a main type
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- Failed to write core dump. minidumps are not enabled by default on client version of windows
- How to uninstall Eclipse?
- Editor does not contain a main type in Eclipse [duplicate]
- “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G
- Editor does not contain a main type in Eclipse [duplicate]
- undefined reference to `WinMain@16′
- How is “mvn clean install” different from “mvn install”?
- JRE Missing when installing eclipse
- A JNI error has occurred, please check your installation and try again in Eclipse x86 Windows 8.1
- make: g++: Command not found
- ‘react-scripts’ is not recognized as an internal or external command
- SLF4J: Class path contains multiple SLF4J bindings
- Lombok and Maven
- “g++” is not recognized as an internal or external command, MinGW
- Server Tomcat v9.0 Server at localhost failed to start
- mvn command not found in OSX Mavrerick
- Eclipse: Enable autocomplete / content assist
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- Eclipse C++ : “Program “g++” not found in PATH”
- Maven Install on Mac OS X
- “insufficient memory for the Java Runtime Environment ” message in eclipse
- Control an Arduino with Java
- Cannot find “Package Explorer” view in Eclipse
- JVM Crash – “EXCEPTION_ACCESS_VIOLATION”
- what does Dead Code mean under Eclipse IDE Problems Section
- what does Dead Code mean under Eclipse IDE Problems Section
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- How do I resolve the “java.net.BindException: Address already in use: JVM_Bind” error?
- Eclipse: Java was started but returned error code=13
- “g++” is not recognized as an internal or external command, MinGW
- Unable to create requested service [org.hibernate .engine.jdbc.env.spi.JdbcEnvironment]-MySQL
- Server Tomcat v9.0 Server at localhost failed to start
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Opening JSF Facelets page shows “This XML file does not appear to have any style information associated with it.”
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Facebook login NullPointerException
- The program can’t start because cygwin1.dll is missing… in Eclipse CDT
- mvn command not found in OSX Mavrerick
- Eclipse C++ : “Program “g++” not found in PATH”
- Unbound classpath container in Eclipse
- unused import statement for used ones in IntelliJ IDEA
- How to change a package name in Eclipse?
- what is this ANT build?
- ‘cannot open git-upload-pack’ error in Eclipse when cloning or pushing git repository
- Maven: Non-resolvable parent POM
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
- Maven: Failed to read artifact descriptor
- Eclipse “Error: Could not find or load main class”
- Error: Selection does not contain a main type
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
- Integrate Ant builder into Eclipse: Error “Variable references empty selection”
- What exactly is a Maven Snapshot and why do we need it?
- Spring Maven clean error – The requested profile “pom.xml” could not be activated because it does not exist
- “Server Tomcat v7.0 Server at localhost failed to start” without stack trace while it works in terminal
- “Could not find Java SE Runtime Environment.” after installing Java
- Maven error : Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
- eclipse won’t start – no java virtual machine was found
- Eclipse does not start when I run the exe?
- The declared package does not match the expected package “”
- eclipse won’t start – no java virtual machine was found
- Eclipse Java error: This selection cannot be launched and there are no recent launches
- How can I avoid this Ant Build error?
- Eclipse returns error message “Java was started but returned exit code = 1”
- Access restriction: The type ‘Application’ is not API (restriction on required library rt.jar)
- bootstrap navbar not working correctly