Excluding few dependencies from pom for manual resolving


#1

Hi All,

In our project, we have dependencies with packaging type as ejb and ejb-client.When we try to resolve entire pom.xml, the dependencies with package type as ejb and ejb-client got failed.

So is there any option like excluding some dependencies from pom for making them available for manually resolve those dependencies

Please help me on this


#2

Hi,
you can exclude some transitive dependency from another dependency (see the chapter “Transitive dependency exclusion” here: https://github.com/shrinkwrap/resolver#resolving-dependencies), but I’m not aware of any possibility of excluding a whole dependency specified in a pom.xml file.

BTW, why the resolution has failed - what kind of exception did you get?