'Maven cmd to list only not excluded dependencies

Is there a way to list only dependencies which are not totally excluded using maven ? I want to ignore this dependency for example :

<dependency>
  <groupId>org.talend.libraries</groupId>
  <artifactId>opensaml-xacml-api-3.4.5</artifactId>
  <version>6.0.0</version>
  <exclusions>
    <exclusion>
      <artifactId>*</artifactId>
      <groupId>*</groupId>
    </exclusion>
  </exclusions>
</dependency>

I could parse the pom.xml and detect those dependencies but I'am looking for a simpler way do to that.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source