'java.lang.module.FindException: Unable to derive module descriptor' when using module path with micrometer-core (original) (raw)
Describe 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