maven 發佈工程jar找不到

  1. <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">  tomcat

  2.         <attributes>  eclipse

  3.             <attribute name="maven.pomderived" value="true"/>  maven

  4.             <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>  spa

  5.         </attributes>  component

  6. </classpathentry>  ip

其實這個節點通常都是有的,可是必定要確認有沒有這個屬性<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>。class

    而後在eclipse的項目上refresh一下maven項目,不refresh一下eclipse裏的工程是沒有效果的。而後再在這個項目對應的tomcat上郵件點擊」clean「。而後去自動發佈的路徑上,就會發現,全部maven依賴的jar包都出來了。
cli

相關文章
相關標籤/搜索