[英]Excluding packages from jars in maven assembly descriptor
我有以下語法問題。
我有一個從其他解壓縮的jar文件創建的jar文件。 我試圖將一些包排除在新的jar文件中。
這是我的匯編描述符
<assembly>
<id>gs-jar</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<unpack>true</unpack>
<scope>runtime</scope>
<includes>
<include>com.delver:shci-commons</include>
<include>com.delver:shci-model</include>
<include>com.delver:gigaspaces-persistence</include>
<include>com.delver:gigaspaces-mirror</include>
<include>com.delver:recommendation</include>
</includes>
<unpackOptions>
<excludes>
<exclude>
Ohio.Model*
</exclude>
<exclude>log4j.properties</exclude>
<exclude>gslicense.xml</exclude>
</excludes>
</unpackOptions>
</dependencySet>
</dependencySets>
</assembly>
如你所見,我試圖排除以Ohio.Model開頭的軟件包,但無論如何它都包括在內。
語法有問題嗎?
找到了
<exclude>
**/Ohio/**
</exclude>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.