Closed dbwiddis closed 2 years ago
Hi Daniel, I'll try to take a look later this week. I skimmed the configuration and it looks good to me:
https://github.com/oshi/oshi/blob/9fbccfb3a4c71fb714e012f3d8fc33f03eaa1075/pom.xml#L261-L280
3 weeks ... and still got not time. Soon™️...
Your definition of "Soon™️" may need recalibrating. 😁
I was bored enough today to try to debug this myself, and after a few hours of trial and error and stack trace digesting, I managed to get it working by adding the following lines to module-info.test
:
--add-modules
org.hamcrest
--add-reads
com.github.oshi=org.hamcrest
So I think this was just a configuration thing on my end that I needed to fix.
If the subject line sounds confusing, it is to me too. I'm not even sure this is the right project to which to submit this issue, but since the error is occurring during execution of this plugin, it's at least a cry for help from someone who might have an inkling where else I can look!
Background:
The change causing problems:
The symptoms:
Reviewing debug logs, hamcrest is included on the module path:
I've looked for split modules and other dependency conflicts. Nothing abnormal:
Things I've tried with no success:
requires org.hamcrest
to my module-info.java: Compile error:module not found: org.hamcrest
The package org.hamcrest is accessible from more than one module: <unnamed>, org.hamcrest
--add-reads com.github.oshi=org.hamcrest
to the module-info.test file: Same symptoms as long list above, but the line just before the stack trace says "WARNING: Unknown module: org.hamcrest specified to --add-reads"I don't know if this is a bug or user (me) error or just a need for a configuration setting in maven.
Happy to try any other suggestions and provide any other output needed. Or you can try playing with it yourself on the java11 branch here: https://github.com/oshi/oshi/tree/java11