You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: "mac os x", version: "10.15.5", arch: "x86_64", family: "mac"
IDE: IntelliJ Idea
Description:
I can't get a reproducible test case that I can debug yet, but I am seeing a weird behavior. Application has a bunch of resources registered by package name:
It also has integration tests with a static @BQApp instance. Scenarios:
[works] App is run from IDE
[works] Assembled app is run on command line as a .jar (runnable jar with lib folder)
[works] Tests are run from IDE
[broken] Tests are run from command line with Maven (mvn clean verify)
In the last scenario all REST API tests fail with 404 errors, hinting that the endpoints are not known to Jersey. Changing the registration above from addPackage to addResource fixes the issue. Something wrong with package scanning under Maven and Java 11?
The text was updated successfully, but these errors were encountered:
Environment:
Description:
I can't get a reproducible test case that I can debug yet, but I am seeing a weird behavior. Application has a bunch of resources registered by package name:
It also has integration tests with a static
@BQApp
instance. Scenarios:mvn clean verify
)In the last scenario all REST API tests fail with 404 errors, hinting that the endpoints are not known to Jersey. Changing the registration above from
addPackage
toaddResource
fixes the issue. Something wrong with package scanning under Maven and Java 11?The text was updated successfully, but these errors were encountered: