Normal
Eclipse
Project execution:
MVN Eclipse: Eclipse
Then
Eclipse
Medium
Import
Project
1.3 In
Eclipse
Set in
Maven
PATH variable
The imported project has an error mark. Don't worry, because you haven't set
Maven
Class Library variable
Open the properties box of the project
Java build path
We can see that the paths of the dependent class libraries of the project have been automatically set.
The following settings
Maven
PATH variable
M2_repo
Window-> preferences-> JAVA-> build path-> classpath Variables
,
New
Name
Name it
M2_repo
, Path for your local
Maven
Class Library address, which is
C:/Documents and Settings/Jeffrey/. m2/Repository
, After the setting is successful, re-compile and find that the error mark of the project has been eliminated. So far,
Eclipse
The project has been imported successfully.
1.4 Add a new dependency for the project
Edit
POM
File to add a new
Dependency
,
Save
Run the following commands on the console:
MVN Eclipse: clean
MVN-dwtpversion = 1.0 Eclipse: Eclipse
In
Eclipse
Refresh the project to see that the new dependency has been added
Eclipse
Project