【发布时间】:2014-01-14 21:57:37
【问题描述】:
我无法让 Eclipse 正确地将覆盖的 WAR 本地发布到 weblogic 服务器。运行 maven clean 包会正确地组装 EAR,并导入正确的 webapp 内容。我发现了几个类似的问题,但似乎都不是最近的问题或相同的问题。
查看我的 org.eclipse.wst.common.component 文件,也正确生成了覆盖资源的依赖模块。
我正在使用 m2e-wtp 1.0.1.20130911-1545
是否需要进行其他配置才能让服务器发布以读取该覆盖?
编辑更多信息: 这是 WARs pom.xml 的摘录
<dependencies>
<dependency>
<groupId>com.abc</groupId>
<artifactId>core-webcontent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<overlays>
<overlay>
<groupId>com.abc</groupId>
<artifactId>core-webcontent</artifactId>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
</build>
这是组件文件的摘录
<dependent-module deploy-path="/" handle="module:/overlay/prj/core-webcontent?includes=**/**&excludes=META-INF/MANIFEST.MF">
<dependency-type>consumes</dependency-type>
</dependent-module>
<dependent-module deploy-path="/" handle="module:/overlay/slf/?includes=**/**&excludes=META-INF/MANIFEST.MF">
<dependency-type>consumes</dependency-type>
</dependent-module>
我尝试在本地对 EAR 进行导出,以便查看 EAR 并查看文件是否被添加到其他位置,但这种设置似乎根本不起作用。
【问题讨论】:
标签: java eclipse maven weblogic overlay