我無法使Eclipse將本地覆蓋WAR文件正確地發佈到weblogic服務器。運行一個maven clean包正確地組裝正確的webapp內容導入的EAR。我發現了幾個類似的問題,但沒有一個看起來是最近的或相同的問題。m2e-wtp覆蓋文件未加載到Eclipse發佈的EAR或WAR文件中
查看我的org.eclipse.wst.common.component文件,也正確地生成了覆蓋資源的從屬模塊。
我使用M2E-WTP 1.0.1.20130911-1545
是否有額外的配置,我需要做的就是將服務器發佈到讀取覆蓋?
更多信息編輯: 這裏是戰爭的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並查看這些文件是否被添加到不同的位置,但似乎完全不適用於此類型的設置。
太棒了。這似乎是他們發佈到weblogic的方式。這讓它工作。當然,就像你指出的那樣,如果它馬上發佈變化就會容易得多,但是現在就可以做到了。 – luke