appfuse2.0与eclipse wtp

如果你用 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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值