How to exclude a direct dependency of a Maven Plugin

后端 未结 3 1050
天涯浪人
天涯浪人 2021-01-04 05:22

I want to exclude a direct dependency of a Maven plugin and the approach described in this answer does not work (as indicated by this comment).

As a particular examp

3条回答
  •  心在旅途
    2021-01-04 05:56

    Up until now there hasn't been any reason to do this, but this seems like a valid one. Most clean solution I can think of is allowing to override the scope with "none" for plugin dependencies.

    I've created MNG-6222 for it, not sure if we'll fix this for a Maven3, but it makes sense to do it at least for the next major.

提交回复
热议问题