'java.lang.module.FindException: Unable to derive module descriptor' when using module path with micrometer-core
See original GitHub issueDescribe the bug The compilation failure occurs in our CI pipeline when building using Java 11, here is a temp URL to see the console log.
I can see the module name is correct in version 1.10.0-M3.
It works fine in our CI pipelines based on Java 8.
[ERROR] Error occurred during initialization of boot layer
[ERROR] java.lang.module.FindException: Unable to derive module descriptor for D:\a\_work\1\.m2\repository\io\micrometer\micrometer-core\1.10.0-M3\micrometer-core-1.10.0-M3.jar
Environment
- Micrometer version [1.10.0-M3]
- OS: [windows server 2019]
- Java version: [11.0.16.1, vendor: Eclipse Adoptium, runtime: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.16-101\x64]
To Reproduce How to reproduce the bug: Please follow this steps:
-
Checkout this branch https://github.com/moarychan/azure-sdk-for-java/tree/moary/migrate-spring-data-cosmos-to-spring-dir
-
Or sparse checkout below parts:
/* !/*/ /eng **/*.xml /sdk/cosmos /sdk/formrecognizer /sdk/parents /sdk/spring
-
Run the below command in the root project:
mvn.cmd -f pom.xml --batch-mode --fail-at-end --settings eng/settings.xml -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dgpg.skip -Dmaven.javadoc.skip=true -Dcodesnippet.skip=true -Dspotbugs.skip=true -Dcheckstyle.skip=true -Drevapi.skip=true -DtrimStackTrace=false -pl com.azure:azure-cosmos, -DAZURE_TEST_DEBUG=false -Dparallel-test-playback=true -Punit -T 1C verify
Expected behavior Normal use.
Additional context N/A
Issue Analytics
- State:
- Created a year ago
- Comments:13 (5 by maintainers)
Yes, thanks for your support.
@jonatan-ivanov seems like the issue was caused by https://github.com/micrometer-metrics/micrometer/blob/f2977bcf864f8c16934978be2f0c3a43b6a50687/micrometer-core/src/main/resources/META-INF/services/io.micrometer.context.ThreadLocalAccessor#L1?