Maven configuration in MyEclipse, myeclipsemaven
Configure Maven in the IDE of MyEclipse. After the configuration is complete, the error message-dmaven. multiModuleProjectDirectory system propery is not set appears when Maven is started! The reason is that the Maven configuration is incomplete. You need to configure-Dmaven in the Default VM arguments of the IDE Java virtual machine. multiModuleProjectDirectory = $ M2_HOME. This $ M2_HOME refers to the Maven environment variable you configured earlier. Below I will detail my Maven configuration, mainly for my own record:
1. Download Maven
Download it from the official Maven website. I use version 3.3.3. Official website address: http://maven.apache.org/download.cgi after entering the official website you will see this:
The four download packages in the above Link, the above two bins are on the javasiws platform, and the following two src are on the Linux platform; from top to bottom, the first and third are with source code packages. I am using the second, windows platform without the source package, my Network Disk connection: http://pan.baidu.com/s/1gddE5Hp
After downloading, decompress the package and put the corresponding folder to the directory you specified.
2. Configure environment variables and customize local warehouses
Before configuring Maven environment variables, it is best to configure Java environment variables first.
Configure $ M2_HOME first, and then add % MVN_HOME % \ bin; To the end of PATH.
Okay, now you want to customize Maven local library, you can modify Maven configuration file, Location: Your path \ apache-maven-3.3.3 \ conf \ setting. xml, set to the directory you want to download.
Now, Maven configuration is complete. Let's test it. Input mvn-version in command line cmd. If the result is correct, the configuration is complete.
Run the following command to verify the configuration of the local database. On the command line cmd, enter: mvn help: system
This command prints all java System attributes and environment variables. This information is helpful for our daily programming work.
If there are no errors during the running process, open our warehouse (D: \ WorkSoft \ repo) and you will find some files in it. These files are downloaded from the maven central repository to the local repository.
3. Configure Maven in MyEclipse. I use version 8.5. The configuration is as follows:
Click Update Setting to Update the configuration. The configuration is basically complete now. However, based on the problem I encountered above, you need to configure it in the Java Runtime Environment, as shown below:
PS: The JDK running in Maven3 is version 1.7 or more advanced.