English 中文(简体)
Eclipse, Tomcat, m2e and War Overlay from artifact
原标题:Eclipse, Tomcat, m2e and War Overlay from artifact

我认为,这是在托马卡特自动出版行动引起的变化,但基本上,在我有一个利用战争超支的空洞项目时,这种资源正从当地母公司项目而不是该母公司的战争档案中复制。 在母项目中,大量建筑工程投入使用,在档案中取走不会奏效,我需要把儿童项目置于母子项目战争档案之外。 关于如何做到这一点的想法?

* Edit——更多细节。

管道工程,由管理局具体规定:

 <dependency>
   <groupId>org.parentproject</groupId>
   <artifactId>parentproject-web</artifactId>
   <version>2.0-SNAPSHOT</version>
   <type>war</type>
</dependency>

这导致下列情况:org.eclipse.wst.common.component

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="eurekastreams-web-ym2">
    <wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
    <wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
    <wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
    <dependent-module deploy-path="/" handle="module:/overlay/prj/parentproject-web?includes=**/**&amp;excludes=META-INF/MANIFEST.MF">
        <dependency-type>consumes</dependency-type>
    </dependent-module>
    <dependent-module deploy-path="/" handle="module:/overlay/slf/?includes=**/**&amp;excludes=META-INF/MANIFEST.MF">
        <dependency-type>consumes</dependency-type>
    </dependent-module>
    <property name="context-root" value="parentproject-web-childproject"/>
    <property name="java-output-path" value="/parentproject-web-childproject/target/classes"/>
</wb-module>

最佳回答

答案是,在部署大会中增加目标夹:

<wb-resource deploy-path="/" source-path="/target/ROOT"/>

在那里,由于突发战争的拖延造成的后果,ALOT成为目标。

问题回答

您需要安装m2e-wtp extension,以处理WAR的超支。 然后,你宣布超支项目为依赖项目,并应在你的工作空间内这样做。





相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签