On Thu, Jul 1, 2021 at 12:15 PM Brandon Mintern <mint...@everlaw.com> wrote:

> Maybe one of these—or a better alternative—is already possible? I feel like
> I must be missing something. Is something wrong with the way I'm
> structuring my projects? Does Maven already provide a way to achieve this
> out-of-the-box? Is there a plugin that provides something like the "stubs"
> functionality?
>

There was some discussion of this issue on this list a year ago as well:
https://lists.apache.org/thread.html/r6bfcf85aa7fd2b9a02a3f2513b9e10f1141b9102fda2bfc533d02379%40%3Cusers.maven.apache.org%3E

The conclusion was also that there's no great way to accomplish this. I
think one good way to fix this issue would be to have Maven resolve
test-scoped dependencies transitively when you depend on test-jars, but
perhaps there's a good reason why that's not practical or not a good idea.

--
Andy Feldman

Reply via email to