美文网首页
eclipse项目文件夹下没有Maven Dependencie

eclipse项目文件夹下没有Maven Dependencie

作者: Loistein | 来源:发表于2019-03-07 23:10 被阅读0次

在.project中添加:

<natures>

<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

<nature>org.eclipse.jdt.core.javanature</nature>

<nature>org.eclipse.m2e.core.maven2Nature</nature>

<nature>org.eclipse.wst.common.project.facet.core.nature</nature>

<nature>org.eclipse.wst.jsdt.core.jsNature</nature>

</natures>

在.classpath中添加:

<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>

重启ecipse生效

相关文章

网友评论

      本文标题:eclipse项目文件夹下没有Maven Dependencie

      本文链接:https://www.haomeiwen.com/subject/yxbkpqtx.html