ITeye博客

eclipse部署时候,jar包到不了web-inf/lib解决

lkf009 · 2013-08-29 23:09 · eclipse · 开源软件 · Markdown

在使用eclipse发布项目的时候,引用的maven以及其他外引的jar包都部署不到tomcat的web-inf/lib,经过一份查找,最终解决,方案如下,在工程的.project文件中修改

 

<?xml version="1.0" encoding="UTF-8"?>

<classpath>

<classpathentry including="**/*.java" kind="src" output="WebRoot/WEB-INF/classes" path="src"/>

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_14"/>

<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">

   <attributes>

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

   </attributes>

</classpathentry>

<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/classonline"/>

<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>

</classpath>

 

 红色字体是在正常的.project文件里加的

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。