簡體   English   中英

Maven EAR插件配置

[英]maven EAR plugin configuration

我在Ear插件配置方面遇到問題,正是我想將jar依賴項之一放在ear的根目錄中,並將其余部分放在lib目錄中。 有人可以幫我弄這個嗎?

更新:

我有4個項目,其中一個是容器,pom類型。 其中之一是帶有兩個依賴項的耳朵,即war和jar。 我想用目錄結構創建耳朵:

--a.war和b.jar項目
/ lib /-'a'和'b'項目的所有依賴項
/ META-INF /-MANIFEST.MF

pom.xml的一部分

            <configuration>
                <!-- <artifactTypeMappings>
                    <artifactTypeMapping type="war" mapping="webModule" />
                </artifactTypeMappings> -->
                <webModule>
                    <groupId>a</groupId>
                    <artifactId>a</artifactId>
                    <contextRoot>/a</contextRoot>
                    <bundleFileName>a.war</bundleFileName>
                    <bundleDir>lib</bundleDir>
                </webModule>
                <jarModule>
                    <groupId>b</groupId>
                    <artifactId>b</artifactId>
                    <bundleDir>/</bundleDir>
                    <bundleFileName>/b.jar</bundleFileName>
                </jarModule>
                <defaultLibBundleDir>lib</defaultLibBundleDir>
            </configuration>

文檔進行簡單的查看會有所幫助 您只需從要放入根位置的條目中刪除bundleDir條目即可。

<jarModule>
 <groupId>b</groupId>
 <artifactId>b</artifactId>
 <bundleFileName>/b.jar</bundleFileName>
</jarModule>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM