Environment:
- Bootique 2.0
- Maven: 3.6.1
- Java version: 11.0.6, vendor: AdoptOpenJDK
- 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:
JerseyModule.extend(binder).addPackage(OneOfTheResources.class);
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?
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
@BQAppinstance. 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
addPackagetoaddResourcefixes the issue. Something wrong with package scanning under Maven and Java 11?