Thanks for the pointer to that conversation! Andreas described exactly my
issue in a much clearer and more concise way.

For now, test-jars seem to be the best path forward in spite of the
drawbacks. I'm considering writing a plugin to prototype the "stubs"
approach that I described.


On Thu, Jul 8, 2021 at 3:41 PM Andy Feldman <an...@wealthfront.com> wrote:

> 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