商务合作:179001057@qq.com

appfuse2.0与eclipse wtp

技术2022-05-11  0


某平台价值19860元的编程课程资料免费领取【点我领取】


如果你用 Modular生成的项目,使用 mvn install eclipse:eclipse如果用的是 Basic,使用mvn eclipse:eclipse我这里用的是basic 编辑 myproject/.settings/org.eclipse.wst.common.component(如果是modular, myproject/web/.settings/org.eclipse.wst.common.component )删除 <wb-resource deploy-path="/" source-path="src/main/webapp"/>添加 <wb-resource deploy-path="/" source-path="target/myproject-webapp-1.0-SNAPSHOT"/>删除 <wb-resource deploy-path="/WEB-INF/classes" source-path="src/main/resources"/> 编辑myproject/.classpath删除第3行<classpathentry kind="src" path="src/main/resources" excluding="ApplicationResources_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.properties|ApplicationResources_nl.properties|ApplicationResources_no.properties|ApplicationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationResources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java"/>添加 <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v5.5"/>   <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> 设置eclpse Preferences -> Java -> Installed JREs: Make sure default JRE is actually the JDK and not the JRE. Preferences -> Server -> Installed Runtimes: Pick an Apache -> Tomcat 5.5 server, and point it to your local installation 导入项目 编辑.settings/org.eclipse.wst.common.component 删除 <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/appfuse/appfuse-struts/2.0/appfuse-struts-2.0.war">       <dependency-type>uses</dependency-type>     </dependent-module> 失败了     <dependent-module deploy-path="/WEB-INF/lib" handle="module:/classpath/var/M2_REPO/org/appfuse/appfuse-web-common/2.0/appfuse-web-common-2.0.war">       <dependency-type>uses</dependency-type>     </dependent-module>

最新回复(0)