Have mvn dependency:list print out all artifacts in a group except for those in a sub-group?
<p>I'm trying to list all artifacts in <code>com.example</code>, except those in <code>com.example.foo.bar</code>.</p>

<p>For <code>mvn dependency:tree</code>, I can do this:</p>

<pre><code>mvn dependency:tree -Dexcludes=*bar* -Dincludes=com.example.*
</code></pre>

<p>However, when I try:</p>

<pre><code>mvn dependency:list -DexcludeGroupIds=com.example.foo.bar -DincludeGroupIds=com.example
</code></pre>

<p>Maven still lists everything in <code>bar</code>.</p>

<p><strong>Question</strong>: How can I mirror the results from <code>dependency:tree</code> using <code>list</code>?</p>