(1) in Windows->preferences->build path->classpath variable, the MVN library is imported, the name must be called "M2_repo", the selected directory is generally similar to "/home/ Potter/.m2/repository "
(2) Many students perform MVN eclipse:eclipse, and after importing eclipse there are many red forks (or a red exclamation mark on the item). This is usually caused by a lack of m2_repo variables. Can be resolved by configuring the M2_repo variable.
Here's how:
In Eclipse, select Window-> perferences, then select Java-> Build Path-and Classpath Variable to see if there are any M2_repo variables in the variable list on the right.
The new variable is simple:
Click the New button, the variable name is M2_repo, the value is the path of the MAVEN local library on your machine, which is generally/home/yourname/.m2/repository. After adding eclipse will build again workspace.
View suggested "Package Explorer"
or install: M2eclipse plugin is also OK