I have the following syntax problem.
I have a jar file that is created from other unzipped jar files. I am trying to exclude any package from a new jar file.
Here is my build descriptor
<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>
As you can see, I am trying to exclude a package that starts with Ohio.Model, but somehow it is included anyway.
Is there something wrong with the syntax?
java maven-2
Roman
source share