MyEclipse adds Maven

1. Download the maven installation file apache-maven-*.bin.zip from the maven official website, extract it to the local directory and configure the environment variables.

The new environment variable M2_HOME points to the folder after maven decompression. eg:D:\apache-maven-3.0.4

Add %M2_HOME%\bin after PATH

Enter the command mvn -v at the command line, if the installation is successful, the current maven version will be displayed

2. Activate and configure the maven plug-in of MyEclipse. MyEclipse itself has a plug-in called Maven4MyEclipse, which only needs to be activated and configured.

Activation method: window-preference-MyEclipse-Maven4MyEclipse, check the checkbox (Enable Maven4MyEclipse features).

Configuration method: Under Maven4MyEclipse opened by the above activation method, there is a maven node, expand this node, and mainly configure the two nodes under it, as follows:

installations: This node uses the built-in maven by default, we need to use our own maven, click "add", add our externally installed maven, and check it after adding.

User Settings: Configure the configuration file used by externally installed maven, namely %M2_HOME%\conf\setting.xml. After selecting, click the Refresh Settings button below

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327065775&siteId=291194637