Configure maven with Idea
There are 4 steps to configure maven using idea:
(1) Download Idea, maven
(2) Install idea,
(3) Set maven environment variables,
(4) The specific configuration process
Current environment:
Operating system: win10 64
Tools: IntelliJ IDEA version 2017.3.4
maven version 3.5.3
It is assumed that the idea here has been basically installed. Then let's configure maven environment variables.
1. Configure maven environment variables
1.1 Configuration
Before configuring the maven environment variables, make sure that the Java environment variables have been set up (if the Java ones have not been set, please see: XXXX (to be filled))
Configure two system variables: M2_HOME and Path
****Note: It must be a system variable.
(1)M2_HOME
This is actually the storage path of maven. Figure 1-1
Picture 1-1
(2)Path
If you have used it before, you can add it at the end. Figure 1-2. (Note: The last sentence doesn't need a semicolon.)
Figure 1-2
1.2 Verification
After the configuration is complete, verify whether the configuration is successful.
Call up the command line interface (cmd), input: mvn -v, if the data shown in Figure 1-3 appears, the configuration is successful.
If an error message is output (JAVA_HOME should point to a JDK not a JRE ), please read this (XXXXX)