When Eclipse runs the maven project, it is directly terminated in the console

A pit encountered when starting a maven project with myeclipse2014 version. After downloading the code from svn and importing it into myeclipse, there is no error message on myeclipse, but when using the maven command to operate, it is terminated directly.

First, check the jdk version number in myeclipse to determine whether it is the jdk version that comes with myeclipse. It is recommended not to use the built-in jdk version;

Next, check the version number and setting information of the maven plugin to make sure that the maven plugin has been installed correctly. In the command window, mvn -v displays the corresponding information. If it does not display the maven configuration, the correct display should be:


After the above information is displayed, if the maven project imported in the myeclipse2014 version still cannot run normally, the problem must be the problem of the myeclipse2014 tool. After research, it is found that there is a blank on Installed JREs in the preferences of myeclipse, fill in the corresponding parameters, and then run it normally.


maven is running normallylaughing out loudlaughing out loud



The red box is filled with                 -Dmaven.multiModuleProjectDirectory=$MAVEN_HOME



Eclipse and MyEclipse are common, if you do not set user variables in the local environment, then you can replace $MAVEN_HOME with your maven address, for example
D:\apache-maven-3.5.2-bin\bin
After saving, run as maven test
console message

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326527233&siteId=291194637