Artifacts from dependencies can be excluded by declaring an element inside a But in this case it\'s needed to
Redefine the dependency (in the child pom) with scope system pointing to an empty jar :
scope
dependency.coming from.parent 0 system ${project.basedir}/empty.jar
The jar can contain just a single empty file :
touch empty.txt jar cvf empty.txt