Install maven plugin and create maven project in Eclipse

One download maven plugin
eclipse-maven3-plugin.7z
 
Two plug-in installation
1. Unzip eclipse-maven3-plugin.7z
2. Put maven in the eclipse installation directory D:\MyEclipse 10\dropins
 
Three configuration Maven
1. The Maven option will appear in [Window] -> [Preferences], click this option
2. Modify and install jre, the screenshot is as follows


 
3, maven default configuration modification, modified to native maven


 
4. Modify the default User Settings, the screenshot is as follows


 
 
Four tests whether Maven is successfully installed
The first step: [File]->[new]->[other]


 
Step 2: Template selection quickstart item


 
Step 3: Fill in the parameters


 
Step 4: The generated project skeleton is as follows


 
Step 5: Select M2 building


 
Step 6: Run the project: compile


 
If you run it directly, you will get an error
The following configuration is required


 
-Dmaven.multiModuleProjectDirectory=%M2_HOME
Step 7: Run the project: package

 



 

Guess you like

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