修改web项目的.settings下的org.eclipse.wst.common.component文件,添加dependent-module节点即可.
(http://www.eclipse.org/forums/index.php/t/204020/)
<?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="cpcns-his-web"> <wb-resource deploy-path="/" source-path="/WebContent"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> <dependent-module archiveName="cpcns-his-interface.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cpcns-his-interface/cpcns-his-interface"> <dependency-type>uses</dependency-type> </dependent-module> <dependent-module archiveName="cpcns-his-server.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cpcns-his-server/cpcns-his-server"> <dependency-type>uses</dependency-type> </dependent-module> <dependent-module archiveName="cpcns-systems-base.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/cpcns-systems-base/cpcns-systems-base"> <dependency-type>uses</dependency-type> </dependent-module> <property name="context-root" value="cpcns-his-web"/> <property name="java-output-path" value="/cpcns-his-web/build/classes"/> </wb-module> </project-modules>