Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published

我就是我 2022-08-21 06:00 99阅读 0赞

From: http://www.cnblogs.com/dingyingsi/p/3723246.html

sometimes when importing a maven project in eclipse, i get the following error:

  1. Classpath entry org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER will not be exported or published. Runtime ClassNotFoundExceptions may result

.

although the classpath file on the svn repo contains the maven dependencies entry:

  1. <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
  2. <attributes>
  3. <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
  4. </attributes>
  5. </classpathentry>

i know the workaround to solve the issue by going to project deployment assembly and adding maven dependencies manually (which will add the entry above again !), but i am curious to know, why such error is generated, although classpath contains the dependencies entry ?
-—————————————————————————————————————————————————————————————————

121329590008766.bmp

关键部分修改为:

  1. <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
  2. <attributes>
  3. <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"></attribute>
  4. </attributes>
  5. </classpathentry>

发表评论

表情:
评论列表 (有 0 条评论,99人围观)

还没有评论,来说两句吧...

相关阅读