Maven project is missing Maven Dependencies

  Generally, Maven comes with Eclipse, or the Maven installed by itself does not open the service.

Solution: Right-click the Maven project -->Maven-->Enable Dependency Management

  There may be some maven versions that do not have the option Enable Dependency Management

Solution: Add the following code to the .classpath file in the Maven project folder

  

  

  <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
    <attributes>
      <attribute name="maven.pomderived" value="true"/>
      <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
    </attributes>
  </classpathentry>

  Then right-click the project Maven-->Update Project.

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324822005&siteId=291194637