Eclipse can not refer to the Maven Solutions

Problem Description: Eclipse open view down into the java EE and found the original Maven Dependencies directory does not exist, shows org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER;

Solution: Go to .settings file in the project directory folder to view files org.eclipse.wst.common.component the value of source-path of change right: <wb-resoure source-path = "/ src / main / webapp"> restart Eclipse into force;

Other solutions: check in online to solve a variety of ways, but did not take effect in your project, but also a list of what we want to be useful:

  Method One: Delete the project directory .setting .project file folder and restart Eclipse;

  Method Two: Modify .classpath file;

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

  Method three: against anti-key project -> Properties -> Maven -> Active Maven Profiles fill Maven Dependencies;

 

Eclipse project file system Introduction: https://www.cnblogs.com/shihaiming/p/5803957.html  can look

Guess you like

Origin www.cnblogs.com/jiangyaxiong1990/p/11232251.html