On Sun, Jun 26, 2022 at 9:49 AM Alexander Kriegisch <
alexan...@kriegisch.name> wrote:

>
> Firstly, you are not crerating a test JAR but a regular JAR with
> application classes, so of course test-scoped dependencies like JUnit
> are not going to be contained in the uber JAR.
>

Oh, right.

Secondly, you are even explicitly excluding JUnit, so how could you
> expect it to be included, even if it was not test-scoped?
>

Boy am I red in the face right now! I had copied that example from the web
and hadn't noticed the exclusion statement. Thx for pointing out the
obvious. All works now.

Alain

>
> > <exclude>junit:junit</exclude>
>
> --
> Alexander Kriegisch
> https://scrum-master.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to