I am creating a fatJar which includes classes from many other jar dependencies into the jar being assembled. As a result I need to exclude some (not all) dependencies when the .pom file is generated. The following code (slightly modified) from the maven plugin page allows me to mark these jars as optional. How would I remove them from the dependencies or mark them in a fashion that they do not appear in the generated pom ?
The group Id / artifactId below are merely indicative. I have a list of them.