Skip to end of metadata
Go to start of metadata

One thing that would be nice for some of the projects we work on with clients is the ability to globally exclude artifacts.  For example, I would like always to exclude commons-logging and log4j because I am using slf4j and logback instead.  Many third-party artifacts we use depend on one or both of these, and it will be difficult to add an <exclusions> section to each artifact that transitively includes commons-logging.  This feature would most likely need large warning signs that it should not be used except in extreme circumstances and only if you really know what you're doing, as it could lead to odd behavior and broken builds.


  • No labels

1 Comment

  1. I agree that this would be a very useful feature. I created this JIRA issue attempting to address the same problem:

    There is also this popular issue:

    I think that the exclusions tag should be added to the dependencies tag both in the main dependencies section, and in the plugin's dependencies section, so you could have something like this:

    In a plugin definition, this would allow you to override certain plugin dependencies. See this issue: