Trigger Maven Plugin Execution if module has direct dependency on specific artifact <p>Can maven trigger or skip a plugin execution if the module directly depends on another module? For example, </p> <ul> <li>my project contains 4 children: connector, a, b, c</li> <li>a &amp; b depend on connector, c does not</li> </ul> <p>I want a &amp; b to perform a maven-dependency-plugin extraction of connector followed by an antrun to move files around. I want to put the execution in the parent so I define it once.</p> <p>I want c to automatically skip the extraction.</p> <p>Please let me know if you think this is possible and how you'd approach it.</p> <p>Thanks</p> <p>Peter</p>