maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (Jira)" <>
Subject [jira] [Commented] (SUREFIRE-1563) NoClassDefFoundError for JPMS modules with "require static"
Date Fri, 01 May 2020 19:03:00 GMT


Robert Scholte commented on SUREFIRE-1563:

Option 1 is clear, assuming the tests have a different package and the module has a different
name. So no patching required.
Option 3 is possible, [~olamy] recently added via
the property `includeStatic`

I have my doubts about option 2. The fact that you use a module descriptor will imply you
need to copy everything from the main module descriptor. Instead I would stick to additional

> NoClassDefFoundError for JPMS modules with "require static"
> -----------------------------------------------------------
>                 Key: SUREFIRE-1563
>                 URL:
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Surefire Plugin
>    Affects Versions: 2.22.0
>            Reporter: Simone Bordet
>            Assignee: Olivier Lamy
>            Priority: Major
>         Attachments: maven-jpms.tgz
> When a Maven module has a {{}} that contains a {{requires static}},
Surefire throws {{NoClassDefFoundError}} when running the tests for that Maven module.
> If the dependency is declared only as {{required}} (no {{static}}), then the tests run
> Attached a reproducible project.

This message was sent by Atlassian Jira

View raw message