How to build a distro minus packages in maven?
1 answer
Simply, use the tag <includes>
in the plugin jar:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<includes>
<include>/com/foo/api/*</include>
<include>/com/foo/impl/*</include>
</includes>
</configuration>
</plugin>
There is a section on inclusion / exclusion in the usage section of the plugin document.
+1
source to share