1
我目前有一個EAR,由共享的common.jar,一個EJB.jar和幾個WAR組成。當我只需要進行小的改動時,重新創建整個EAR並重新部署它可能非常耗時。Wild 10 10共享EJB
所以現在,我試圖在我的開發環境中獨立部署JAR,EJB和WAR。我能夠部署JAR和任何不需要EJB的WAR。任何需要的EJB戰爭的失敗:
WFLYEJB0406:沒有與類型「foo.IBar」界面找到EJB的 結合foo.Baz /爲myBean
我增加了以下內容對於Maven的EJB-插件的EJB POM引用JAR:
<configuration>
<archive>
<manifestEntries>
<Dependencies>deployment.common-${project.version}.jar export</Dependencies>
</manifestEntries>
</archive>
</configuration>
添加以下到需要訪問的EJB的WAR勁歌:
<configuration>
<archive>
<manifestEntries>
<Dependencies>deployment.ejb-${project.version}.jar</Dependencies>
</manifestEntries>
</archive>
</configuration>
我錯過了什麼讓我的WAR在未使用EAR時選擇EJB部署?